Debian Codegraph @

zipsrc

raw
1 #!/bin/sh
2 # Create a zip file in your home directory containing
3 # the Mathomatic source distribution with no object files or binary executable files.
4 # The current directory must be the Mathomatic build directory for this to work
5 # and "make distclean" should have been done at some time beforehand.
6 # Uses Info-ZIP and its command line options.
7
8 if [ ! -f "VERSION" ]
9 then
10 echo 'zipsrc executed from an improper directory;'
11 echo 'Must only be invoked as "./zipsrc" from the Mathomatic source directory.'
12 exit 1
13 fi
14
15 set -e
16 ./makenews.sh
17 make -s -C primes distclean
18 make -s -C lib distclean
19 make -s doc/quickrefcard.html
20 rm -f ~/am.zip */*.o */*.pyc */*.pyo
21 echo Mathomatic development source code and docs version `cat VERSION`+ \
22 | zip -9rqzX ~/am.zip *.c *.h make* t update compile* *.txt VERSION AUTHORS COPYING NEWS *.1 zipsrc doc primes tests lib examples m4 misc icons menu \
23 && echo ~/am.zip created.