archive (573B)
1 #!/bin/sh 2 3 set -e 4 dir=$(mktemp -d) 5 subdir=$(basename $(pwd)) 6 mkdir $dir/$subdir \ 7 $dir/$subdir/build \ 8 $dir/$subdir/graphics 9 cp main.tex references.bib llncs.cls splncs04.bst $dir/$subdir 10 cp \ 11 build/sections.eps \ 12 build/bow.eps \ 13 build/micw-bow.eps \ 14 build/aurora.vsl.eps \ 15 build/micw.vsl.eps \ 16 $dir/$subdir/build 17 cp \ 18 graphics/hydrostatics.png \ 19 graphics/stability.png \ 20 graphics/waves.png \ 21 graphics/aurora-1.png \ 22 graphics/aurora-2.png \ 23 $dir/$subdir/graphics 24 cd $dir 25 zip -r $subdir.zip $subdir 26 cd - 27 cp $dir/$subdir.zip build 28 rm -rf --one-file-system $dir