Skip to content
Snippets Groups Projects
Commit ee02c11b authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

* add default shebang in rtupdate scripts

* add execute bit in rtupdate scripts
parent 9c620347
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ install-dev:
$(DESTDIR)$(PREFIX)/share/python/runtime.d \
$(DESTDIR)$(PREFIX)/share/debhelper/autoscripts/ \
$(DESTDIR)$(PREFIX)/share/perl5/Debian/Debhelper/Sequence/
$(INSTALL) -m 644 runtime.d/* $(DESTDIR)$(PREFIX)/share/python/runtime.d/
$(INSTALL) -m 755 runtime.d/* $(DESTDIR)$(PREFIX)/share/python/runtime.d/
$(INSTALL) -m 644 autoscripts/* $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts/
$(INSTALL) -m 755 dh_python2 $(DESTDIR)$(PREFIX)/bin/
$(INSTALL) -m 644 python2.pm $(DESTDIR)$(PREFIX)/share/perl5/Debian/Debhelper/Sequence/
......
......@@ -20,7 +20,7 @@
# THE SOFTWARE.
import logging
from os import makedirs
from os import makedirs, chmod
from os.path import exists, join, dirname
log = logging.getLogger('dh_python')
......@@ -170,7 +170,7 @@ class DebHelper(object):
if exists(fn):
data = open(fn, 'r').read()
else:
data = ''
data = '#! /bin/sh -e'
for dname, args in values:
cmd = 'if [ "$1" = rtupdate ]; then' +\
"\n\tpyclean %s" % dname +\
......@@ -181,6 +181,7 @@ class DebHelper(object):
fp = open(fn, 'w')
fp.write(data)
fp.close()
chmod(fn, 0755)
def save(self):
self.save_substvars()
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment