X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=60fd21efccb1cd608db67bc2424ef47408dbebc8;hb=5f21d20e65f1846c346704ac7c749a3f0ad8660e;hp=9413ce59ed167dcda13cfef5995758aa478571f0;hpb=31a7c9e7766fed8e72b873850f3798801e442401;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index 9413ce59e..60fd21efc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,11 +51,22 @@ ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' SUFFIXES = .in .in: $(PERL) $(srcdir)/soexpand.pl -I$(srcdir) < $< | \ - sed -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + sed \ -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ + -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + -e 's,[@]PERL[@],$(PERL),g' \ + -e 's,[@]PYTHON[@],$(PYTHON),g' \ -e 's,[@]RUNDIR[@],$(RUNDIR),g' \ + -e 's,[@]VERSION[@],$(VERSION),g' \ + -e 's,[@]localstatedir[@],$(localstatedir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ - -e 's,[@]PERL[@],$(PERL),g' > $@ + -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ + > $@.tmp + @if head -n 1 $@.tmp | grep -q '#!'; then \ + echo chmod +x $@.tmp; \ + chmod +x $@.tmp; \ + fi + mv $@.tmp $@ include lib/automake.mk include ofproto/automake.mk @@ -66,8 +77,4 @@ include third-party/automake.mk include debian/automake.mk include vswitchd/automake.mk include xenserver/automake.mk -if HAVE_CURSES -if HAVE_PCRE include extras/ezio/automake.mk -endif -endif