OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/devtool.conf versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/devtool.conf 1.3 -> 1.4

--- devtool.conf 2002/07/30 19:45:22     1.3
+++ devtool.conf 2002/08/02 19:07:12     1.4
@@ -20,18 +20,30 @@
         --enable-debug \
         "$@"
 
+%release
+    ./devtool version
+    ./devtool tag
+    ./devtool dist
+    ./devtool upload
+
 %version
-    ./shtool version -l txt -n "OSSP cfg" -e VERSION
-    V=`./shtool version -l txt -d long VERSION`
-    sed -e "s/Version .*(.*)/Version $V/g" <README >README.n 
-    mv README.n README
+    ./shtool version -l c -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
+
+%tag
+        V=`./shtool version -lc -dshort cfg_vers.c | sed -e 's;\.;_;g'`
+    echo "+++ tagging CVS sources as CFG_${V}"
+    cvs tag CFG_${V}
 
 %dist
+    echo "+++ removing old tarballs"
+    rm -f cfg-*.tar.gz
     echo "+++ generating"
     ./devtool autoclean
     ./devtool autogen
     echo "+++ configuring"
-    ./devtool configure
+    ./configure
     echo "+++ building"
     make clean all man
     echo "+++ cleaning"
@@ -39,14 +51,17 @@
     echo "+++ fixing"
     ./shtool fixperm -v .
     echo "+++ rolling"
-    V=`./shtool version -l txt -d short VERSION`
+        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' .
+                     -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 -
+    gunzip <cfg-${V}.tar.gz | tar tvf - | head -10
+    echo "[...]"
+    gunzip <cfg-${V}.tar.gz | tar tvf - | tail -10
 
-%release
+%upload
     echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/cfg/"
-    scp cfg-*.tar.gz master.ossp.org:/e/ossp/ftp/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/
 

CVSTrac 2.0.1