OSSP CVS Repository

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

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

%checkout
    BRANCH_EX="EX_1_0_5"
    BRANCH_STR="STR_0_9_11"
    BRANCH_L2="L2_0_9_11"
    BRANCH_SA="SA_1_2_6"
    BRANCH_VAR="VAR_1_1_3"
    BRANCH_VAL="VAL_0_9_4"
    BRANCH_POPT=""
    BRANCH_PCRE=""
    for name in ex str l2 sa var val popt 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.3 "2.0.*" all
    @autogen autoconf 2.59  "2.5[4-9]*"

    for name in ex str l2 sa var val popt pcre; do
        echo "===> lib_${name} (devtool autogen)"
        (cd lib_${name} && ./devtool autogen)
        echo "<=== lib_${name}"
    done

%autoclean
    @autoclean shtool
    @autoclean autoconf

    for name in ex str l2 sa var val popt pcre; do
        echo "===> lib_${name} (devtool autoclean)"
        (cd lib_${name} && ./devtool autoclean)
        echo "<=== lib_${name}"
    done

%configure
    ./configure \
        --cache-file=config.cache \
        --prefix=/tmp/lmtp2nntp \
        --disable-shared \
        --enable-maintainer \
        --enable-debug \
        "$@"
        #--with-dmalloc=/usr/opkg \

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

%version
    ./shtool version -l c -n "OSSP lmtp2nntp" -p "lmtp2nntp_" -e lmtp2nntp_version.c
	V=`./shtool version -lc -dlong lmtp2nntp_version.c`
	sed -e "s/Version .*/Version $V/g" <README >README.n && mv README.n README

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

%dist
    echo "+++ removing old tarballs"
    rm -f lmtp2nntp-*.tar.gz
    echo "+++ changelog"
    cvs2cl --revisions --branches --tags --window 10 --utc --log-opts "-l"
    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 lmtp2nntp_version.c`
    ./shtool tarball -o lmtp2nntp-${V}.tar.gz -d lmtp2nntp-${V} -u ossp -g ossp \
                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$,*.bak,00TODO,autom4te\.cache,^[0-9]\.*' \
                     -c 'gzip --best' .
    ls -l lmtp2nntp-${V}.tar.gz
    echo "+++ testing"
    gunzip <lmtp2nntp-${V}.tar.gz | tar tvf - | head -10
    echo "[...]"
    gunzip <lmtp2nntp-${V}.tar.gz | tar tvf - | tail -10

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


CVSTrac 2.0.1