also make sure not to package any hidden files in the package dir
[tricorder.git] / package / make-package.sh
1 #!/bin/bash
2
3 pkgdir=`pwd`
4 cd `dirname $0`
5 cd ..
6 origdir=`pwd`
7
8 rm -v $pkgdir/*
9 zip -r -D -0 $pkgdir/package.zip * -x package/{,.}*
10 dver=`date +%y.%j.%H`
11 pkgsize=`wc -c $pkgdir/package.zip | awk '{ print $1 }'`
12 sed -e "s/DVER/$dver/" -e "s/PKGSIZE/$pkgsize/" package/manifest.package > $pkgdir/manifest.package
13 cp package/.htaccess $pkgdir/