Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#!/usr/bin/make -f
+SHELL=/bin/bash
+
export PYBUILD_INSTALL_DIR=/usr/share/hippotat/python3
%:
debian/copyright: COPYING AGPLv3+CAFv2
cat $^ >$@.tmp && mv -f $@.tmp $@
+
+override_dh_compress:
+ find debian/hippotat/usr/{bin,sbin} -type f | xargs ./subst-sys-path
+ dh_compress
# along with this program, in the file GPLv3. If not,
# see <http://www.gnu.org/licenses/>.
-
+#@ sys.path.append('@PYBUILD_INSTALL_DIR@')
from hippotatlib import *
import twisted.web
# the file AGPLv3+CAFv2. If not, email Ian Jackson
# <ijackson@chiark.greenend.org.uk>.
-
+#@ sys.path.append(@PYBUILD_INSTALL_DIR@)
from hippotatlib import *
import os
--- /dev/null
+#!/usr/bin/perl -pi
+next unless m{^#\@ };
+my $ok = 1;
+s{@(\w+)@}{ $ENV{$1} // ($ok=0, $&) }ge;
+s{^#\@ }{} if $ok;