3 # release.sh: script to roll a release tarball of darkstat.
4 # copyright (c) 2006-2008 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 "make depend" to update deps in Makefile.in
13 echo "usage: $0 version" >&2
75 echo ==\
> releasing
$PKG
79 eval $@ ||
{ echo ERROR
!; exit 1; }
83 run
cp -r $files $PKG/.
85 # set the version number
86 (echo "AC_INIT(darkstat, $VERSION)"
87 grep -v "^AC_INIT" configure.ac
) > $PKG/configure.ac
89 echo ==\
> set version
: `grep '^AC_INIT' $PKG/configure.ac`
94 run
rm -r autom4te.cache
98 run
tar -cf $PKG.
tar $PKG
99 run
bzip2 -9vv $PKG.
tar