OSSP CVS Repository

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

ossp-pkg/str/devtool.conf
##
##  devtool.conf -- Development Tool Configuration
##

%autogen
    @autogen shtool   2.0.3  "2.0.*" echo install mkdir fixperm tarball version
    @autogen libtool  1.5.20 "1.5*"
    @autogen autoconf 2.59   "2.5[4-9]*"

%autoclean
    @autoclean shtool
    @autoclean libtool
    @autoclean autoconf

%configure
    ./configure \
        --prefix=/tmp/str \
        --disable-shared \
        --enable-debug \
        "$@"

%release
    ./devtool version
    ./devtool tag
    ./devtool dist
    ./devtool upload

%version
    ./shtool version -l c -n "OSSP str" -p "str_" -e str_version.c
    V=`./shtool version -l c -d long str_version.c`
    sed -e "s/Version .*/Version $V/g" <README >README.n
    mv README.n README

%tag
    V=`./shtool version -lc -dshort str_version.c | sed -e 's;\.;_;g'`
    echo "+++ tagging CVS sources as STR_${V}"
    cvs commit -m 'flush pending changes before tagging'
    cvs tag STR_${V}

%dist
    rm -f str-*.tar.gz
    ./devtool autoclean
    ./devtool autogen
    ./configure
    make clean all man
    make distclean
    ./shtool fixperm -v .
    V=`./shtool version -l c -d short str_version.c`
    ./shtool tarball -o str-${V}.tar.gz -d str-${V} -u ossp -g str \
                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
    ls -l str-${V}.tar.gz
    gunzip <str-${V}.tar.gz | tar tvf - | head -10; echo "[...]"
    gunzip <str-${V}.tar.gz | tar tvf - | tail -10

%upload
    echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/str/"
    V=`./shtool version -lc -dshort str_version.c`
    scp str-${V}.tar.gz ossp@master.ossp.org:/v/ossp/ftp/pkg/lib/str/

%snap
    rm -f str-*.tar.gz
    ./devtool autoclean
    ./devtool autogen
    ./configure
    make clean all man
    make distclean
    ./shtool fixperm -v .
    D=`date '+%Y%m%d'`
    ./shtool tarball -o str-SNAP-${D}.tar.gz -d str-SNAP-${D} -u ossp -g str \
                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
    ls -l str-SNAP-${D}.tar.gz
    gunzip <str-SNAP-${D}.tar.gz | tar tvf - | head -10; echo "[...]"
    gunzip <str-SNAP-${D}.tar.gz | tar tvf - | tail -10


CVSTrac 2.0.1