30 lines
545 B
Bash
Executable File
30 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR=ocarina-2.1
|
|
SCION=/opt/scion/
|
|
|
|
#sh ./clean
|
|
mkdir $DIR
|
|
cp -r core $DIR
|
|
cp -r extra $DIR
|
|
cp -r $SCION/base $DIR
|
|
cp -r $SCION/core $DIR
|
|
cp -r $SCION/extra $DIR
|
|
#cp ocarina.release $DIR/ocarina
|
|
cp clean.sh $DIR
|
|
|
|
cd $DIR
|
|
sh ./clean.sh
|
|
rm clean.sh
|
|
|
|
echo "#!/bin/bash" > ocarina
|
|
echo "CORE=\`pwd\`/\`dirname \$0\`\"/core\"" >> ocarina
|
|
echo "EXTRA=\`pwd\`/\`dirname \$0\`\"/extra\"" >> ocarina
|
|
echo "cd base && \`which python\` scion.py -p \$CORE -p \$EXTRA \$*" >> ocarina
|
|
chmod +x ocarina
|
|
|
|
cd ..
|
|
|
|
tar -cvf $DIR.tar.gz $DIR
|
|
rm -r $DIR
|