ossp-pkg/svs/devtool.conf
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen autoconf 2.63 "2.6*"
@autogen shtool 2.0.8 "2.0.*" all
%autoclean
@autoclean autoconf
@autoclean shtool
%configure
./configure --prefix=/tmp/svs "$@"
%version
./shtool version -l txt -n "OSSP svs" -e VERSION
V=`./shtool version -l txt -d long VERSION`
sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
mv README.n README
%dist
echo "+++ generating"
./devtool autoclean
./devtool autogen
echo "+++ configuring"
./configure
echo "+++ building"
make clean all
echo "+++ cleaning"
make distclean
echo "+++ fixing"
./shtool fixperm -v .
echo "+++ rolling"
V=`./shtool version -l txt -d short VERSION`
./shtool tarball -o svs-${V}.tar.gz -d svs-${V} -u ossp -g svs \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz' -c 'gzip --best' .
ls -l svs-${V}.tar.gz
echo "+++ testing"
gunzip <svs-${V}.tar.gz | tar tvf -
%upload
echo "+++ copying to ftp://ftp.ossp.org/pkg/tool/svs/"
V=`./shtool version -ltxt -dshort VERSION`
scp svs-${V}.tar.gz ossp@master.ossp.org:/v/ossp/ftp/pkg/tool/svs/