From: Matthias Andree Date: Fri, 5 Sep 2008 08:25:28 +0000 (+0200) Subject: Unbreak build if directory renamed from e2fsprogs. X-Git-Tag: v1.41.2~20 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=f7c9a06c99223c4a3ff87eb019c2a109fc8a3cea;p=tools%2Fe2fsprogs.git 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 Signed-off-by: Theodore Ts'o --- diff --git a/util/gen-tarball.in b/util/gen-tarball.in index a1bcaaf..b82f12c 100644 --- a/util/gen-tarball.in +++ b/util/gen-tarball.in @@ -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