*** /dev/null Sat Nov 23 01:52:11 2024
--- - Sat Nov 23 01:52:16 2024
***************
*** 0 ****
--- 1,98 ----
+ ##
+ ## OSSP cfg - Configuration Parsing
+ ## Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 2002-2004 The OSSP Project <http://www.ossp.org/>
+ ## Copyright (c) 2002-2004 Cable & Wireless <http://www.cw.com/>
+ ##
+ ## This file is part of OSSP cfg, a configuration parsing library which
+ ## can be found at http://www.ossp.org/pkg/lib/cfg/.
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## devtool.conf -- Development Tool Configuration
+ ##
+
+ %autogen
+ @autogen shtool 2.0.1 "2.0.*" echo fixperm install mkdir tarball version
+ @autogen libtool 1.5.10 "1.5*"
+ @autogen autoconf 2.59 "2.5[4-9]*"
+
+ %autoclean
+ @autoclean shtool
+ @autoclean libtool
+ @autoclean autoconf
+
+ %configure
+ ./configure \
+ --prefix=/tmp/cfg \
+ --disable-shared \
+ --enable-maintainer \
+ --enable-debug \
+ --with-perl \
+ "$@"
+
+ %release
+ ./devtool version
+ ./devtool tag
+ ./devtool dist
+ ./devtool upload
+
+ %version
+ ./shtool version -lc -n "OSSP cfg" -p "__cfg_" -e cfg_vers.c
+ V=`./shtool version -lc -dlong cfg_vers.c`
+ sed -e "s/Version .*(.*)/Version $V/g" <README >README.n && mv README.n README
+ V=`./shtool version -l c -d short cfg_vers.c`
+ sed -e "s/\(v = ('\)[^']*\('\)/\1$V\2/g" <perl/cfg.pm >perl/cfg.pm.n
+ mv perl/cfg.pm.n perl/cfg.pm
+
+ %tag
+ V=`./shtool version -lc -dshort cfg_vers.c | sed -e 's;\.;_;g'`
+ echo "+++ tagging CVS sources as CFG_${V}"
+ cvs commit -m 'flush pending changes before tagging'
+ cvs tag CFG_${V}
+
+ %dist
+ echo "+++ removing old tarballs"
+ rm -f cfg-*.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 cfg_vers.c`
+ ./shtool tarball -o cfg-${V}.tar.gz -d cfg-${V} -u ossp -g ossp \
+ -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' .
+ ls -l cfg-${V}.tar.gz
+ echo "+++ testing"
+ gunzip <cfg-${V}.tar.gz | tar tvf - | head -10
+ echo "[...]"
+ gunzip <cfg-${V}.tar.gz | tar tvf - | tail -10
+
+ %upload
+ echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/cfg/"
+ V=`./shtool version -lc -dshort cfg_vers.c`
+ scp cfg-${V}.tar.gz master.ossp.org:/e/ossp/ftp/pkg/lib/cfg/
+
|