Unbreak build if directory renamed from e2fsprogs.

gen-tarball currently assumes that the top-level directory is called
e2fsprogs, which breaks building the tarball if it's named differently.
Since we have already computed the basename, let's use it.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Matthias Andree 2008-09-05 10:25:28 +02:00 committed by Theodore Ts'o
parent a6c408b691
commit f7c9a06c99

View File

@ -43,7 +43,7 @@ mv ../e2fsprogs.spec $top_srcdir/e2fsprogs.spec
-print) | sed -e "s/^$base_e2fsprogs/$SRCROOT/" > $exclude
sed -e "s;^;$SRCROOT/;" < $srcdir/$list.exclude >> $exclude
(cd $top_srcdir/.. ; rm -f $SRCROOT ; ln -sf e2fsprogs $SRCROOT)
(cd $top_srcdir/.. ; rm -f $SRCROOT ; ln -sf $base_e2fsprogs $SRCROOT)
(cd $top_srcdir/.. ; tar -c -h -v -f - -X $exclude $SRCROOT) \
| $GZIP -9 -c > $SRCROOT.tar.gz