forked from github/kensanata.oddmuse
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# The Makefile is only for developpers wanting to prepare the tarball.
|
|
# Make sure the CVS keywords for the sed command on the next line are not expanded.
|
|
|
|
VERSION=oddmuse-$(shell sed -n -e 's/^.*\$$Id: wiki\.pl,v \([0-9.]*\).*$$/\1/p' wiki.pl)
|
|
TRANSLATIONS=$(wildcard [a-z]*-utf8.pl)
|
|
MODULES=$(wildcard modules/*.pl)
|
|
|
|
dist: $(VERSION).tar.gz
|
|
|
|
upload: $(VERSION).tar.gz $(VERSION).tar.gz.sig
|
|
curl -T $(VERSION).tar.gz -T $(VERSION).tar.gz.sig \
|
|
ftp://savannah.gnu.org/incoming/savannah/oddmuse/
|
|
|
|
$(VERSION).tar.gz:
|
|
rm -rf $(VERSION)
|
|
mkdir $(VERSION)
|
|
cp README FDL GPL ChangeLog wiki.pl $(TRANSLATIONS) $(MODULES) $(VERSION)
|
|
tar czf $(VERSION).tar.gz $(VERSION)
|
|
|
|
$(VERSION).tar.gz.sig:
|
|
gpg --sign -b $(VERSION).tar.gz
|
|
|
|
update-translations: $(TRANSLATIONS)
|
|
|
|
.PHONY: always
|
|
|
|
*-utf8.pl: always
|
|
grep '^#' $@ > new-$@
|
|
perl umtrans.pl wiki.pl $@ >> new-$@ && mv new-$@ $@
|
|
|
|
deb:
|
|
equivs-build control
|
|
|
|
install:
|
|
@echo This only installs the deb file, not the script itself.
|
|
dpkg -i oddmuse*.deb
|
|
|
|
test:
|
|
perl test-markup.pl
|