Commits

Sylvain Thénault  committed 634c0fa

rewrite bin script to use python3 ourselves, this is not done anymore by packaging tools

  • Participants
  • Parent commits bc6b112

Comments (0)

Files changed (1)

File debian.sid/rules

 	# rename executables
 	for executable in pylint pylint-gui symilar epylint pyreverse ; do \
 		new_exec="$$executable"3; \
-		mv $(CURDIR)/debian/$(PACKAGE3)/usr/bin/$$executable $(CURDIR)/debian/$(PACKAGE3)/usr/bin/$$new_exec; \
+		sed 's,^#!.*python$$,&3,' < $(CURDIR)/debian/$(PACKAGE3)/usr/bin/$$executable > $(CURDIR)/debian/$(PACKAGE3)/usr/bin/$$new_exec || exit 1; \ \
+
 	done
-	
 	# remove test directory
 	rm -rf debian/*/usr/lib/python*/*-packages/pylint/test
-	
 	# generate pylint man page automatically
 	#PYTHONPATH=$(CURDIR)/debian/$(PACKAGE)/$(PYLIB) python $(CURDIR)/bin/pylint --generate-man > $(CURDIR)/man/pylint.1
-	
 	# rename and install man pages
 	dh_installman -ppylint man/*.1
 	cd man && for i in *.1; do cp -v $$i "$$(basename $$i .1)3.1"; done