Whamcloud - gitweb
debian: Create debian release tarball to obey new WIP naming convention
authorTheodore Ts'o <tytso@mit.edu>
Mon, 7 Jul 2008 20:07:43 +0000 (16:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Jul 2008 20:12:28 +0000 (16:12 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
configure
configure.in
util/gen-tarball.in

index 7ec9091..8982258 100755 (executable)
--- a/configure
+++ b/configure
@@ -1906,8 +1906,7 @@ date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
 
 case $E2FSPROGS_VERSION in
 *-WIP|pre-*)
-       pre_vers=`echo $base_ver 0.01 - p | dc`
-       E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
+       E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
        ;;
 *)
        E2FSPROGS_PKGVER="$base_ver"
index 9a43f99..c16893e 100644 (file)
@@ -46,8 +46,7 @@ date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
 
 case $E2FSPROGS_VERSION in
 *-WIP|pre-*)
-       pre_vers=`echo $base_ver 0.01 - p | dc`
-       E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
+       E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
        ;;
 *)
        E2FSPROGS_PKGVER="$base_ver"
index 8dcaf04..e550e2c 100644 (file)
@@ -9,12 +9,18 @@ base_ver=`echo @E2FSPROGS_VERSION@ | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS
 base_e2fsprogs=`basename $top_dir`
 exclude=/tmp/exclude
 
-deb_pkgver=`echo @E2FSPROGS_PKGVER@ | sed -e 's/_/-/g'`
-echo Debian package $deb_pkgver
+#
+# This hack is needed because texi2dvi blows up horribly if there are 
+# any '~' chracters in the directory pathname.  So we kludge around it by
+# using a non-standard directory name for WIP releases.  dpkg-source
+# complains, but life goes on.
+#
+deb_pkgver=`echo @E2FSPROGS_PKGVER@ | sed -e 's/~/-/g'`
     
 case $1 in
     debian|ubuntu)
        SRCROOT="e2fsprogs-$deb_pkgver"
+       rename_tarball="e2fsprogs_@E2FSPROGS_PKGVER@.orig.tar.gz"
        list=all
        ;;
     subset)
@@ -43,3 +49,6 @@ sed -e "s;^;$SRCROOT/;" < $srcdir/$list.exclude >> $exclude
 
 (cd $top_srcdir/.. ; rm -f $SRCROOT)
 mv $top_srcdir/e2fsprogs.spec ../e2fsprogs.spec 
+if test -n "$rename_tarball"; then
+    mv $SRCROOT.tar.gz $rename_tarball
+fi