OSSP CVS Repository

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

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

%checkout
    BRANCH_L2="L2_0_9_12"
    BRANCH_CFG="CFG_0_9_11"
    BRANCH_PCRE=""
    for name in l2 cfg pcre; do
        release=BRANCH_`echo ${name} | tr [a-z] [A-Z]`
        release=`eval echo \\$${release}`
        if [ ".${release}" = . ]; then
            if [ -d lib_${name}/CVS ]; then
                echo "===> lib_${name} (cvs up HEAD)"
                ( cd lib_${name} && cvs up -A )
            else
                echo "===> lib_${name} (cvs co HEAD)"
                cvs co -A -d lib_${name} ${name}
            fi
        else
            if [ -d lib_${name}/CVS ]; then
                echo "===> lib_${name} (cvs up ${release})"
                ( cd lib_${name} && cvs up -r${release} )
            else
                echo "===> lib_${name} (cvs co ${release})"
                cvs co -r${release} -d lib_${name} ${name}
            fi
        fi
        echo "<=== lib_${name}"
    done

%autogen
    @autogen shtool   2.0.6  "2.0.*" echo fixperm install mkdir tarball version
    @autogen libtool  1.5.22 "1.5*"
    @autogen autoconf 2.61   "2.6[0-9]*"

    for name in l2 cfg pcre; do
        echo "===> lib_${name} (devtool autogen)"
        (cd lib_${name} && ./devtool autogen)
        echo "<=== lib_${name}"
    done

%autoclean
    @autoclean shtool
    @autoclean libtool
    @autoclean autoconf

    for name in l2 cfg pcre; do
        echo "===> lib_${name} (devtool autoclean)"
        (cd lib_${name} && ./devtool autoclean)
        echo "<=== lib_${name}"
    done

%configure
    ./configure \
        --prefix=/tmp/fsl \
        --disable-shared \
        --enable-maintainer \
        --enable-debug \
        --with-fsl-debuglogcode=yes \
        "$@"

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

%version
    ./shtool version -lc -n "OSSP fsl" -p "fsl_" -e fsl_version.c
    V=`./shtool version -lc -dlong fsl_version.c`
    sed -e "s/Version .*(.*)/Version $V/g" <README >README.n && mv README.n README

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

%dist
    echo "+++ removing old tarballs"
    rm -f fsl-*.tar.gz
    echo "+++ generating"
    ./devtool autoclean
    ./devtool autogen
    echo "+++ configuring"
    ./devtool configure
    echo "+++ building"
    make clean all man
    echo "+++ cleaning"
    make distclean
    echo "+++ fixing"
    ./shtool fixperm -v .
    echo "+++ rolling"
    V=`./shtool version -lc -dshort fsl_version.c`
    ./shtool tarball -o fsl-${V}.tar.gz -d fsl-${V} -u ossp -g ossp \
                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' .
    ls -l fsl-${V}.tar.gz
    echo "+++ testing"
    gunzip <fsl-${V}.tar.gz | tar tvf - | head -10
    echo "[...]"
    gunzip <fsl-${V}.tar.gz | tar tvf - | tail -10

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


CVSTrac 2.0.1