# See http://fossil.include-once.org/xpm/wiki/Packfile
# Applies minor file tweaks right before -t package generation.
all: preprocess $(PACK_TYPE)
# More selective file rewriting
preprocess: $(shell find . -name search.py)m
%.pym: %.py
preprocess -D $(PKG_FLAG) -o $< $<
deb: # complainy lintian needs a custom changelog.gz
gzip -9c usr/share/doc/streamtuner2/NEWS > usr/share/doc/streamtuner2/changelog.gz
zip:
rpm:
exe:
mv usr/share/streamtuner2/help/help.chm usr/share/doc/streamtuner2/help.chm
src:
tar:
arch:
sed -i '1 s/python/python2/' usr/bin/streamtuner2