ossp-pkg/pth/devtool.conf
1.4
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen shtool 1.6.1 "1.6.*" echo version scpp mkdir install fixperm tarball
@autogen libtool 1.4.2 "1.4*"
@autogen autoconf 2.53 "2.5.*"
%autoclean
@autoclean shtool
@autoclean libtool
@autoclean autoconf
%configure
if [ $# -gt 0 ]; then
param="$1"
shift
else
param=devel
fi
./configure \
--cache-file=config.cache \
--with-param=$param \
"$@"
%version
./shtool version -lc -n 'GNU Pth' -p pth_internal_ -e pth_vers.c
%dist
make distclean >/dev/null 2>&1
./shtool fixperm -v .
V=`./shtool version -lc -d short pth_vers.c`
./shtool tarball -o pth-${V}.tar.gz -d pth-${V} -u gnu -g pth \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
%snap
make distclean >/dev/null 2>&1
./shtool fixperm -v .
V=`./shtool version -lc -d short pth_vers.c`
./shtool tarball -o pth-${V}-SNAP.tar.gz -d pth-${V} -u gnu -g pth \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
%striptease
perl striptease.pl
%depend
cp Makefile.in Makefile.in.bak
sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in >Makefile.new
gcc -MM -I. *.c |\
perl -e 'my $d = ""; $d .= $_ while (<STDIN>); $_ = $d; \
s/^(pth_.*)\.o:/$1.lo:/mg; \
s|\\\n\s*| |sg; s|\b?\S*/\S*\b?||g; s|\s{2,}| |g; \
print $_;' >> Makefile.new
cp Makefile.new Makefile.in
rm -f Makefile.new