1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Ensure that .spm/ exists before trying to write to it
mkdir -p .spm/paklib/include/spm
mkdir -p .spm/bin
mkdir -p .spm/paklib/lib
# Copy the required files into .spm
printf " * Creating .spm archive ...";
cp -f ../src/spm .spm/bin/spm
cp -f ../deps/tup/tup .spm/bin/tup
cp -Rf ../paklib/* .spm/paklib/
printf "[DONE]\n";
# Archive .spm into spm.tgz and add the payload to the shell script
printf " * Creating spm.tar.bz2...";
tar -cf spm.tar .spm/
bzip2 -9 spm.tar
cp -f spm.sh.in spm.sh
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Ensure that .spm/ exists before trying to write to it
mkdir -p .spm/paklib/include/spm
mkdir -p .spm/bin
mkdir -p .spm/paklib/lib
# Copy the required files into .spm
printf " * Creating .spm archive ...";
cp -f ../src/spm .spm/bin/spm
cp -f ../deps/tup/tup .spm/bin/tup
cp -rf ../paklib/ .spm/
printf "[DONE]\n";
# Archive .spm into spm.tgz and add the payload to the shell script
printf " * Creating spm.tar.bz2...";
tar -cf spm.tar .spm/
bzip2 -9 spm.tar
cp -f spm.sh.in spm.sh
|