File: zipsrc

package info (click to toggle)
mathomatic 16.0.5-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,192 kB
  • sloc: ansic: 22,029; makefile: 340; sh: 319; python: 96; awk: 39
file content (23 lines) | stat: -rwxr-xr-x 911 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Create a zip file in your home directory containing
# the Mathomatic source distribution with no object files or binary executable files.
# The current directory must be the Mathomatic build directory for this to work
# and "make distclean" should have been done at some time beforehand.
# Uses Info-ZIP and its command line options.

if [ ! -f "VERSION" ]
then
	echo 'zipsrc executed from an improper directory;'
	echo 'Must only be invoked as "./zipsrc" from the Mathomatic source directory.'
	exit 1
fi

set -e
./makenews.sh
make -s -C primes distclean
make -s -C lib distclean
make -s doc/quickrefcard.html
rm -f ~/am.zip */*.o */*.pyc */*.pyo
echo Mathomatic development source code and docs version `cat VERSION`+ \
| 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 \
&& echo ~/am.zip created.