OSSP CVS Repository

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

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

%autogen
    @autogen autoconf 2.62 "2.6*"

%autoclean
    @autoclean autoconf

%configure
    ./configure --prefix=/tmp/shtool "$@"

%version
    sh sh.version -l txt -n "GNU shtool" -e VERSION
    V=`sh sh.version -l txt -d long VERSION`
    sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
    mv README.n README
    V=`sh sh.version -l txt -d short VERSION`
    sed -e "s/%define ver .*/%define ver $V/g" <shtool.spec >shtool.spec.n
    mv shtool.spec.n shtool.spec

%dist
    echo "+++ generating"
    ./devtool autoclean
    ./devtool autogen
    echo "+++ configuring"
    ./configure
    echo "+++ building"
    make clean all
    echo "+++ cleaning"
    make distclean
    echo "+++ fixing"
    sh sh.fixperm -v .
    echo "+++ rolling"
    V=`sh sh.version -l txt -d short VERSION`
    sh sh.tarball -o shtool-${V}.tar.gz -d shtool-${V} -u gnu -g shtool \
                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz' -c 'gzip --best' .
    ls -l shtool-${V}.tar.gz
    echo "+++ testing"
    gunzip <shtool-${V}.tar.gz | tar tvf -


CVSTrac 2.0.1