Files
oddmuse/Makefile

84 lines
2.6 KiB
Makefile
Raw Normal View History

2003-03-27 23:38:22 +00:00
# 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)
UPLOADVERSION=oddmuse-inkscape-$(shell sed -n -e 's/^.*\$$Id: wikiupload,v \([0-9.]*\).*$$/\1/p' wikiupload)
2005-07-01 23:58:25 +00:00
TRANSLATIONS=$(wildcard modules/translations/[a-z]*-utf8.pl$)
2004-01-30 13:45:33 +00:00
MODULES=$(wildcard modules/*.pl)
INKSCAPE=GPL $(wildcard inkscape/*.py inkscape/*.inx inkscape/*.sh)
2003-03-27 23:38:22 +00:00
2004-01-30 13:45:33 +00:00
dist: $(VERSION).tar.gz
upload: $(VERSION).tar.gz $(VERSION).tar.gz.sig \
$(UPLOADVERSION).tar.gz $(UPLOADVERSION).tar.gz.sig
for f in $^; do \
curl -T $$f ftp://savannah.gnu.org/incoming/savannah/oddmuse/; \
done
2004-01-30 13:45:33 +00:00
upload-text: new-utf8.pl
wikiupload new-utf8.pl http://www.oddmuse.org/cgi-bin/oddmuse-en/New_Translation_File
2004-01-30 13:45:33 +00:00
$(VERSION).tar.gz:
2003-03-27 23:38:22 +00:00
rm -rf $(VERSION)
mkdir $(VERSION)
2004-01-30 13:45:33 +00:00
cp README FDL GPL ChangeLog wiki.pl $(TRANSLATIONS) $(MODULES) $(VERSION)
2003-03-27 23:38:22 +00:00
tar czf $(VERSION).tar.gz $(VERSION)
$(UPLOADVERSION).tar.gz: $(INKSCAPE)
rm -rf $(UPLOADVERSION)
mkdir $(UPLOADVERSION)
cp $^ $(UPLOADVERSION)
cp wikiupload $(UPLOADVERSION)/oddmuse-upload.py
tar czf $(UPLOADVERSION).tar.gz $(UPLOADVERSION)
%.tar.gz.sig: %.tar.gz
gpg --sign -b $<
2003-10-15 21:11:21 +00:00
# 1. update-translations (will fetch input from the wiki, and updates files)
# 2. check changes, cvs commit
# 3. upload-translations (will verify cvs status, upload scripts, and upload pages)
2003-10-15 21:11:21 +00:00
update-translations: always
for f in $(TRANSLATIONS); do \
echo $$f...; \
sleep 5; \
make $$f; \
done
upload-translations: always
for f in $(TRANSLATIONS); do \
cvs status $$f | grep 'Status: Up-to-date'; \
wikiput -u cvs -s update http://www.oddmuse.org/cgi-bin/oddmuse/raw/$$f < $$f; \
2006-01-25 13:47:34 +00:00
emacswiki-upload cgi-bin $$f; \
done
%-utf8.pl: always
2005-03-06 16:29:44 +00:00
f=`basename $@` && wget -q http://www.oddmuse.org/cgi-bin/oddmuse/raw/$$f -O $@.wiki
grep '^\(#\|\$$\)' $@.wiki > $@-new
perl oddtrans -l $@ -l $@.wiki wiki.pl $(MODULES) >> $@-new && mv $@-new $@
.PHONY: always
2003-10-15 21:11:21 +00:00
deb:
equivs-build control
install:
@echo This only installs the deb file, not the script itself.
dpkg -i oddmuse*.deb
2003-10-16 23:11:15 +00:00
test:
perl -e 'use Test::Harness; $$Test::Harness::switches = ""; runtests @ARGV;' t/*.t
package-upload: debian-$(VERSION).tar.gz debian-$(VERSION).tar.gz.sig
2004-08-13 02:35:12 +00:00
curl -T "{debian-$(VERSION).tar.gz,debian-$(VERSION).tar.gz.sig}" \
ftp://savannah.gnu.org/incoming/savannah/oddmuse/
package: debian-$(VERSION).tar.gz
gpg --ascii --encrypt $<
debian-$(VERSION).tar.gz:
rm -rf $(VERSION)
mkdir $(VERSION)
cp README FDL GPL wiki.pl $(VERSION)
tar czf $@ $(VERSION)