Initial import with linked core from skeleton
[install.git] / package.sh
1 #!/bin/sh
2 # Prefix of archive
3 PREFIX="xxx"
4
5 sh ./clear-cache.sh
6
7 echo -n "$0: Packaging... "
8 zip -9 $PREFIX.zip docs/* Doxyfile *.php *.sh > /dev/null 2>&1
9 echo -n "."
10 zip -9r $PREFIX.zip application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1
11 echo -n "."
12 zip -d $PREFIX.zip docs/warn.log db/*/*.serialized > /dev/null 2>&1
13 echo ". done"
14
15 echo "$0: Renaming..."
16 eval "mv $PREFIX.zip $PREFIX-`date +%Y%m%d_%H%M%S`.zip"
17
18 echo "$0: All done."