Whamcloud - gitweb
Unbreak build if directory renamed from e2fsprogs.
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 5 Sep 2008 08:25:28 +0000 (10:25 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Sep 2008 01:53:28 +0000 (21:53 -0400)
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>
util/gen-tarball.in

index a1bcaaf..b82f12c 100644 (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