ossp-pkg/rc/devtool.conf
##
## devtool.conf -- Development Tool Configuration
##
%checkout
for name in ex popt; do
echo "===> lib_${name} (cvs co)"
cvs co -d lib_${name} ${name}
echo "<=== lib_${name}"
done
%autogen
@autogen shtool 1.6.2 "1.[56].*" all
@autogen autoconf 2.57 "2.5[3-9]*"
echo "===> lib_ex (devtool autogen)"
(cd lib_ex && ./devtool autogen)
echo "<=== lib_ex"
echo "===> lib_popt (devtool autogen)"
(cd lib_popt && ./devtool autogen)
echo "<=== lib_popt"
# echo "===> rc_str (devtool autogen)"
# (cd rc_str && ./devtool autogen)
# echo "<=== rc_str"
# echo "===> rc_var (devtool autogen)"
# (cd rc_var && ./devtool autogen)
# echo "<=== rc_var"
# echo "===> rc_val (devtool autogen)"
# (cd rc_val && ./devtool autogen)
# echo "<=== rc_val"
%autoclean
@autoclean shtool
@autoclean autoconf
echo "===> lib_ex (devtool autoclean)"
(cd lib_ex && ./devtool autoclean)
echo "<=== lib_ex"
echo "===> lib_popt (devtool autoclean)"
(cd lib_popt && ./devtool autoclean)
echo "<=== lib_popt"
# echo "===> rc_str (devtool autoclean)"
# (cd rc_str && ./devtool autoclean)
# echo "<=== rc_str"
# echo "===> rc_var (devtool autoclean)"
# (cd rc_var && ./devtool autoclean)
# echo "<=== rc_var"
# echo "===> rc_val (devtool autoclean)"
# (cd rc_val && ./devtool autoclean)
# echo "<=== rc_val"
%configure
./configure \
--prefix=/tmp/rc/ \
--disable-shared \
--enable-debug
"$@"
%version
./shtool version -l c -n "OSSP rc" -p "rc_" -e rc_version.c
V=`./shtool version -l c -d long rc_version.c`
sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
mv README.n README
%release
./devtool dist
./devtool upload
%tag
V=`./shtool version -l c -d short rc_version.c | sed -e 's;\.;_;g'`
echo "+++ tagging CVS sources as OSSP_RC_${V}"
cvs tag OSSP_RC_${V}
%dist
echo "+++ cleaning"
rm -f rc-*.tar.gz
make distclean >/dev/null 2>&1
./devtool autoclean
echo "+++ generating"
./devtool autogen
echo "+++ configuring"
./devtool configure
echo "+++ building"
make clean all -j4
echo "+++ cleaning"
make distclean >/dev/null 2>&1
echo "+++ fixing"
./shtool fixperm -v .
echo "+++ rolling"
V=`./shtool version -l c -d short rc_version.c`
./shtool tarball -o rc-${V}.tar.gz -d rc-${V} -u ossp -g ossp \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$,*.bak,00TODO,autom4te\.cache,^[0-9]\.*' \
-c 'gzip --best' .
ls -l rc-${V}.tar.gz
echo "+++ testing"
gunzip <rc-${V}.tar.gz | tar tvf - | head -10
echo "[...]"
gunzip <rc-${V}.tar.gz | tar tvf - | tail -10
%upload
echo "+++ copying to ftp://ftp.ossp.org/pkg/tool/rc/"
V=`./shtool version -lc -dshort rc_version.c`
scp rc-${V}.tar.gz master.ossp.org:/e/ossp/ftp/pkg/tool/rc/