3 # release.sh: script to roll a release tarball of darkstat.
4 # copyright (c) 2006-2009 Emil Mikulic.
6 # This is for developer use only and lives in the repo but
7 # shouldn't end up in a tarball.
9 # Remember to run "./test_headers.sh *.h"
10 # Remember to run "make depend" to update deps in Makefile.in
14 echo "usage: $0 version" >&2
76 echo ==\
> releasing
$PKG
80 eval $@ ||
{ echo ERROR
!; exit 1; }
84 run
cp -r $files $PKG/.
86 # set the version number
87 (echo "AC_INIT(darkstat, $VERSION)"
88 grep -v "^AC_INIT" configure.ac
) > $PKG/configure.ac
90 echo ==\
> set version
: `grep '^AC_INIT' $PKG/configure.ac`
95 run
rm -r autom4te.cache
99 run
tar -cf $PKG.
tar $PKG
100 run
bzip2 -9vv $PKG.
tar