[Pkg-voip-commits] r1599 - asterisk-prompt-it/trunk/debian
Kilian Krause
kilian at costa.debian.org
Sun Apr 16 23:48:43 UTC 2006
Author: kilian
Date: 2006-04-16 23:48:38 +0000 (Sun, 16 Apr 2006)
New Revision: 1599
Modified:
asterisk-prompt-it/trunk/debian/rules
Log:
if there is no subdir level in tarball, create one.
Modified: asterisk-prompt-it/trunk/debian/rules
===================================================================
--- asterisk-prompt-it/trunk/debian/rules 2006-04-16 23:31:32 UTC (rev 1598)
+++ asterisk-prompt-it/trunk/debian/rules 2006-04-16 23:48:38 UTC (rev 1599)
@@ -63,6 +63,16 @@
@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
@@echo Downloading $(FILENAME) from $(URL) ...
@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+ @@echo Repacking with subdir structure if needed...
+ @@mkdir -p ../tarballs/asterisk-prompt-it-$(UPVERSION).tmp/asterisk-prompt-it-$(UPVERSION)/
+ @@cd ../tarballs/asterisk-prompt-it-$(UPVERSION).tmp/asterisk-prompt-it-$(UPVERSION)/ ; \
+ tar xfz ../../$(FILENAME)
+ @@if [ -e ../tarballs/asterisk-prompt-it-$(UPVERSION).tmp/asterisk-prompt-it-$(UPVERSION)/readme.pdf ];then\
+ cd ../tarballs/asterisk-prompt-it-$(UPVERSION).tmp ; \
+ tar cfz ../$(FILENAME) *;\
+ fi
+ @@echo Cleaning up...
+ @@$(RM) -rf ../tarballs/asterisk-prompt-it-$(UPVERSION).tmp/
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
More information about the Pkg-voip-commits
mailing list