debian: Create debian release tarball to obey new WIP naming convention

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2008-07-07 16:07:43 -04:00
parent c03d992429
commit ab06396f70
3 changed files with 13 additions and 6 deletions

3
configure vendored
View File

@ -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"

View 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"

View 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