r68299 - /trunk/libio-socket-socks-perl/debian/rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Thu Feb 10 20:41:47 UTC 2011


Author: gregoa
Date: Thu Feb 10 20:41:36 2011
New Revision: 68299

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=68299
Log:
d/rules: simplify adding of hashbang a bit

Modified:
    trunk/libio-socket-socks-perl/debian/rules

Modified: trunk/libio-socket-socks-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libio-socket-socks-perl/debian/rules?rev=68299&op=diff
==============================================================================
--- trunk/libio-socket-socks-perl/debian/rules (original)
+++ trunk/libio-socket-socks-perl/debian/rules Thu Feb 10 20:41:36 2011
@@ -10,11 +10,10 @@
 override_dh_installexamples:
 	dh_installexamples
 	sed -i -e's|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(EXAMPLES)/*.pl
-	chmod a+x $(EXAMPLES)/*.pl
-	mv $(EXAMPLES)/chain.pl $(EXAMPLES)/chain.pl.bak
-	echo '#!/usr/bin/perl' > $(EXAMPLES)/chain.pl
-	cat $(EXAMPLES)/chain.pl.bak >> $(EXAMPLES)/chain.pl
-	rm $(EXAMPLES)/chain.pl.bak
+	sed -i -e '1i #!/usr/bin/perl\n' $(EXAMPLES)/chain.pl
+
+override_dh_fixperms:
+	dh_fixperms
 	chmod a+x $(EXAMPLES)/*.pl
 
 override_dh_compress:




More information about the Pkg-perl-cvs-commits mailing list