ossp-pkg/as/as-gui/devtool.conf
1.4
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen shtool 1.6.2 "1.6.*" all
@autogen autoconf 2.56 "2.5[3-9]*"
%autoclean
@autoclean shtool
@autoclean autoconf
%configure
./configure \
--prefix=/tmp/titraq \
"$@"
%release
./devtool version
./devtool dist
./devtool upload
%version
./shtool version -l c -n "OSSP asgui" -p asgui_ -e titraq_version.cpp
V=`./shtool version -l c -d long titraq_version.cpp`
sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
mv README.n README
%tag
V=`./shtool version -l c -d short titraq_version.cpp | sed -e 's;\.;_;g'`
echo "+++ tagging CVS sources as ASGUI_${V}"
cvs tag ASGUI_${V}
%dist
echo "+++ cleaning"
rm -f asgui-*.tar.gz
./devtool autoclean
echo "+++ generating"
./devtool autogen
echo "+++ configuring"
./devtool configure
echo "+++ building"
make clean all
echo "+++ cleaning"
make distclean >/dev/null 2>&1
echo "+++ fixing"
./shtool fixperm -v .
echo "+++ rolling"
V=`./shtool version -l c -d short titraq_version.cpp`
./shtool tarball -o asgui-${V}.tar.gz -d asgui-${V} \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' .
ls -l asgui-${V}.tar.gz
echo "+++ testing"
gunzip <asgui-${V}.tar.gz | tar tvf - | head -10
echo "[...]"
gunzip <asgui-${V}.tar.gz | tar tvf - | tail -10
%upload
echo "+++ copying to ftp://ftp.ossp.org/pkg/tool/asgui/"
V=`./shtool version -l c -d short titraq_version.cpp`
scp asgui-${V}.tar.gz ftp.ossp.org:/e/ossp/ftp/pkg/tool/asgui/