devtool.conf

changeset 1
d64aaa7d146f
child 3
c1941114ca88
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/devtool.conf	Fri Nov 28 11:21:08 2008 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +##
     1.5 +##  devtool.conf -- Development Tool Configuration
     1.6 +##
     1.7 +
     1.8 +%autogen
     1.9 +    @autogen shtool   2.0.0 "2.0.*" echo fixperm install mkdir tarball version
    1.10 +    @autogen autoconf 2.59  "2.5[3-9]*"
    1.11 +
    1.12 +%autoclean
    1.13 +    @autoclean shtool
    1.14 +    @autoclean autoconf
    1.15 +
    1.16 +%configure
    1.17 +    ./configure \
    1.18 +        --prefix=/tmp/as_gui/ \
    1.19 +        --datadir=/tmp/as_gui/share/ \
    1.20 +        --with-mico \
    1.21 +        --with-esoap \
    1.22 +        "$@"
    1.23 +
    1.24 +%release
    1.25 +    ./devtool dist
    1.26 +    ./devtool upload
    1.27 +
    1.28 +%version
    1.29 +    ./shtool version -l c -n "OSSP as-gui" -p "asgui_" -e as_version.cpp
    1.30 +    V=`./shtool version -l c -d long as_version.cpp`
    1.31 +    sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
    1.32 +    mv README.n README
    1.33 +
    1.34 +%tag
    1.35 +    V=`./shtool version -l c -d short as_version.cpp | sed -e 's;\.;_;g'`
    1.36 +    echo "+++ tagging CVS sources as ASGUI_${V}"
    1.37 +    cvs tag ASGUI_${V}
    1.38 +
    1.39 +%dist
    1.40 +    echo "+++ cleaning"
    1.41 +    rm -f as-gui-*.tar.gz
    1.42 +    ./devtool autoclean
    1.43 +    echo "+++ generating"
    1.44 +    ./devtool autogen
    1.45 +    echo "+++ configuring"
    1.46 +    ./devtool configure
    1.47 +    echo "+++ building"
    1.48 +    make clean all -j4
    1.49 +    echo "+++ cleaning"
    1.50 +    make distclean >/dev/null 2>&1
    1.51 +    echo "+++ fixing"
    1.52 +    ./shtool fixperm -v .
    1.53 +    echo "+++ rolling"
    1.54 +    V=`./shtool version -l c -d short as_version.cpp`
    1.55 +    ./shtool tarball -o as-gui-${V}.tar.gz -d as-gui-${V} \
    1.56 +                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$,*.bak' \
    1.57 +                     -e 'autom4te\.cache,as_stub.cpp,as_stub.h,as_scrap,as_gfx/*.png' \
    1.58 +                     -c 'gzip --best' .
    1.59 +    ls -l as-gui-${V}.tar.gz
    1.60 +    echo "+++ testing"
    1.61 +    gunzip <as-gui-${V}.tar.gz | tar tvf - | head -10
    1.62 +    echo "[...]"
    1.63 +    gunzip <as-gui-${V}.tar.gz | tar tvf - | tail -10
    1.64 +
    1.65 +%upload
    1.66 +    echo "+++ copying to http://as.is.eu.cw.com/source/"
    1.67 +    V=`./shtool version -l c -d short as_version.cpp`
    1.68 +    scp as-gui-${V}.tar.gz root@as.de.cw.net:/v/as/web/source/

mercurial