Author: aurel32
Date: 2006-05-18 05:47:33 +0000 (Thu, 18 May 2006)
New Revision: 1487

Modified:
   glibc-package/trunk/debian/rules.d/tarball.mk
Log:
backport from 2.4 branch: rename the directory of the unpacked tarball if 
needed.
not necessary for 2.3.6, but it reduces the diff between the two



Modified: glibc-package/trunk/debian/rules.d/tarball.mk
===================================================================
--- glibc-package/trunk/debian/rules.d/tarball.mk       2006-05-17 23:02:39 UTC 
(rev 1486)
+++ glibc-package/trunk/debian/rules.d/tarball.mk       2006-05-18 05:47:33 UTC 
(rev 1487)
@@ -11,6 +11,11 @@
 
 $(patsubst %,$(stamp)%,$(GLIBC_OVERLAYS)):
        cd $(DEB_SRCDIR) && tar -xjvf $(CURDIR)/$(notdir $@)
+       a=`echo $(notdir $@) | sed -e 's/^glibc-//' -e 's/-[^-]*$$//'`; \
+       d=`echo $(notdir $@) | sed -e 's/\.tar\.bz2$$//'`; \
+       if test -d $(DEB_SRCDIR)/$$d; then \
+         cd $(DEB_SRCDIR) && mv $$d $$a; \
+       fi
        touch $@
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to