OSSP CVS Repository

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

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

%autogen
    @autogen shtool   2.0.6 "2.0.*" all
    @autogen autoconf 2.60  "2.6*"

%autoclean
    @autoclean shtool
    @autoclean autoconf

%configure
    ./configure \
        --prefix=/tmp/shiela \
        --with-perl=/usr/opkg/bin/perl \
        --with-cvs=/usr/opkg/bin/cvs \
        "$@"

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

%version
    ./shtool version -ltxt -n "OSSP shiela" -e VERSION
    V=`./shtool version -ltxt -d short VERSION`
    sed -e "s/version = '.*'/version = '$V'/" <shiela.pl >shiela.pl.n && mv shiela.pl.n shiela.pl
    sed -e "s/version=\".*\"/version=\"$V\"/" <shiela-install.sh >shiela-install.sh.n && mv shiela-install.sh.n shiela-install.sh
    V=`./shtool version -l txt -d long VERSION`
    sed -e "s/Version .*(.*)/Version $V/g" <README >README.n && mv README.n README
    sed -e "s/^B<OSSP shiela> [0-9].*/B<OSSP shiela> $V/" <shiela.pod >shiela.pod.n && mv shiela.pod.n shiela.pod
    sed -e "s/^B<OSSP shiela> [0-9].*/B<OSSP shiela> $V/" <shiela-install.pod >shiela-install.pod.n && mv shiela-install.pod.n shiela-install.pod

%bump
    ./devtool version
    V=`./shtool version -ltxt -d short VERSION`
    cvs ci -m "bump to version $V for release"

%tag
    V=`./shtool version -ltxt -dshort VERSION | sed -e 's;\.;_;g'`
    echo "+++ tagging CVS sources as SHIELA_${V}"
    cvs tag -F SHIELA_${V}

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

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


CVSTrac 2.0.1