OSSP CVS Repository

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

ossp-pkg/uuid/devtool.conf 1.39
##
##  devtool.conf -- Development Tool Configuration
##

%autogen
    @autogen shtool   2.0.7  "2.0.*" all
    @autogen libtool  2.2.4  "2.2*"
    @autogen autoconf 2.62   "2.6[0-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 \
        --with-pgsql \
        "$@"

%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 "+++ dist cleaning"
    make distclean
    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' .
    echo "+++ sanity checking"
    gunzip <uuid-${V}.tar.gz | tar tf - | sed -e "s;^uuid-${V}/;;" | sort >MANIFEST.tmp
    if ! cmp MANIFEST MANIFEST.tmp; then
        echo "devtool:sanity:ERROR: EXPECTED AND EXISTING DISTRIBUTION FILES DO NOT MATCH"
        diff -u3 MANIFEST MANIFEST.tmp
        rm -f MANIFEST.tmp
        exit 1
    fi
    rm -f MANIFEST.tmp
    echo "+++ result:"
    ls -l uuid-${V}.tar.gz
    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/


CVSTrac 2.0.1