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