Check-in Number:
|
5180 | |
Date: |
2005-Sep-24 12:35:49 (local)
2005-Sep-24 10:35:49 (UTC) |
User: | rse |
Branch: | |
Comment: |
PHP bindings are special, there Automake & Co are assumed to be required |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/uuid/devtool.conf -> 1.21
*** /dev/null Fri Nov 22 15:28:12 2024
--- - Fri Nov 22 15:28:18 2024
***************
*** 0 ****
--- 1,98 ----
+ ##
+ ## devtool.conf -- Development Tool Configuration
+ ##
+
+ %autogen
+ @autogen shtool 2.0.2 "2.0.*" all
+ @autogen libtool 1.5.20 "1.5*"
+ @autogen autoconf 2.59 "2.5[3-9]*"
+
+ %autoclean
+ @autoclean shtool
+ @autoclean libtool
+ @autoclean autoconf
+
+ %configure
+ ./configure \
+ --prefix=/tmp/uuid \
+ --disable-shared \
+ --enable-debug \
+ --with-dce \
+ --with-cxx \
+ --with-perl \
+ --with-perl-compat \
+ --with-php \
+ "$@"
+
+ %version
+ ./shtool version -l c -n "OSSP uuid" -p _uuid_ -e uuid_vers.h
+ V=`./shtool version -l c -d long uuid_vers.h`
+ sed -e "s/Version .*/Version $V/g" <README >README.n
+ mv README.n README
+ V=`./shtool version -l c -d short uuid_vers.h`
+ sed -e "s/\(v = ('\)[^']*\('\)/\1$V\2/g" <perl/uuid.pm >perl/uuid.pm.n
+ mv perl/uuid.pm.n perl/uuid.pm
+ sed -e "s/\(v = ('\)[^']*\('\)/\1$V\2/g" <perl/uuid_compat.pm >perl/uuid_compat.pm.n
+ mv perl/uuid_compat.pm.n perl/uuid_compat.pm
+
+ %dist
+ echo "+++ removing old tarballs"
+ rm -f uuid-*.tar.gz
+ echo "+++ generating"
+ ./devtool autoclean
+ ./devtool autogen
+ echo "+++ configuring"
+ ./configure
+ echo "+++ real cleaning"
+ make realclean
+ echo "+++ re-generating"
+ ./devtool autoclean
+ ./devtool autogen
+ echo "+++ re-configuring"
+ ./configure
+ echo "+++ building"
+ make all man
+ echo "+++ dist cleaning"
+ make distclean
+ (cd php && make -f Makefile.local realclean)
+ echo "+++ fixing"
+ ./shtool fixperm -v .
+ echo "+++ rolling"
+ V=`./shtool version -l c -d short uuid_vers.h`
+ ./shtool tarball -o uuid-${V}.tar.gz -d uuid-${V} -u ossp -g ossp \
+ -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' .
+ ls -l uuid-${V}.tar.gz
+ echo "+++ testing"
+ gunzip <uuid-${V}.tar.gz | tar tvf - | head -10
+ echo "[...]"
+ gunzip <uuid-${V}.tar.gz | tar tvf - | tail -10
+
+ %snap
+ echo "+++ removing old tarballs"
+ rm -f uuid-*.tar.gz
+ echo "+++ generating"
+ ./devtool autoclean
+ ./devtool autogen
+ echo "+++ configuring"
+ ./configure
+ echo "+++ building"
+ make clean all man
+ echo "+++ cleaning"
+ make distclean
+ echo "+++ fixing"
+ ./shtool fixperm -v .
+ echo "+++ rolling"
+ D=`date '+%Y%m%d'`
+ ./shtool tarball -o uuid-SNAP-${D}.tar.gz -d uuid-SNAP-${D} -u ossp -g ossp \
+ -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' .
+ ls -l uuid-SNAP-${D}.tar.gz
+ echo "+++ testing"
+ gunzip <uuid-SNAP-${D}.tar.gz | tar tvf - | head -10
+ echo "[...]"
+ gunzip <uuid-SNAP-${D}.tar.gz | tar tvf - | tail -10
+
+ %upload
+ echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/uuid/"
+ V=`./shtool version -l c -d short uuid_vers.h`
+ scp uuid-${V}.tar.gz ossp@master.ossp.org:/v/ossp/ftp/pkg/lib/uuid/
+
|
|