OSSP CVS Repository

ossp - ossp-pkg/pth/devtool.conf 1.1
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/pth/devtool.conf 1.1
##
##  devtool.conf -- Development Tool Configuration
##

%autogen
    @autogen shtool   1.5.4 "1.5.*" echo version scpp mkdir install fixperm tarball
    @autogen libtool  1.4.2 "1.4*"
    @autogen autoconf 2.52  "2.5.*"
	cat acheader.m4 configure.ac | autoheader - >pth_acdef.h.in

%autoclean
    @autoclean shtool
    @autoclean libtool
    @autoclean autoconf

%configure
    if [ $# -gt 0 ]; then
        param="$1"
        shift
    else
        param=devel
    fi
    ./configure --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:/; \
	         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


CVSTrac 2.0.1