## ## devtool.conf -- Development Tool Configuration ## %autogen @autogen shtool 2.0.7 "2.0.*" all @autogen libtool 2.2.4 "2.2*" @autogen autoconf 2.62 "2.6[0-9]*" %autoclean @autoclean shtool @autoclean libtool @autoclean autoconf %configure ./configure \ --prefix=/tmp/uuid \ --disable-shared \ --enable-debug \ --with-dce \ --with-cxx \ --with-perl \ --with-perl-compat \ --with-php \ --with-pgsql \ "$@" %version ./shtool version -l c -n "OSSP uuid" -p _uuid_ -e uuid_vers.h V=`./shtool version -l c -d long uuid_vers.h` sed -e "s/Version .*/Version $V/g" README.n mv README.n README V=`./shtool version -l c -d short uuid_vers.h` sed -e "s/\(v = ('\)[^']*\('\)/\1$V\2/g" perl/uuid.pm.n mv perl/uuid.pm.n perl/uuid.pm sed -e "s/\(v = ('\)[^']*\('\)/\1$V\2/g" perl/uuid_compat.pm.n mv perl/uuid_compat.pm.n perl/uuid_compat.pm %dist echo "+++ dist cleaning" make distclean echo "+++ removing old tarballs" rm -f uuid-*.tar.gz echo "+++ generating" ./devtool autoclean ./devtool autogen echo "+++ configuring" ./configure echo "+++ real cleaning" make realclean echo "+++ re-generating" ./devtool autoclean ./devtool autogen echo "+++ re-configuring" ./configure echo "+++ building" make all man echo "+++ dist cleaning" make distclean (cd php && make -f Makefile.local realclean) echo "+++ fixing" ./shtool fixperm -v . echo "+++ rolling" V=`./shtool version -l c -d short uuid_vers.h` ./shtool tarball -o uuid-${V}.tar.gz -d uuid-${V} -u ossp -g ossp \ -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' . echo "+++ sanity checking" gunzip MANIFEST.tmp if ! cmp MANIFEST MANIFEST.tmp; then echo "devtool:sanity:ERROR: EXPECTED AND EXISTING DISTRIBUTION FILES DO NOT MATCH" diff -u3 MANIFEST MANIFEST.tmp rm -f MANIFEST.tmp exit 1 fi rm -f MANIFEST.tmp echo "+++ result:" ls -l uuid-${V}.tar.gz gunzip