|
|
|
@ -1,14 +1,20 @@ |
|
|
|
|
FILES = events.ics events.atom news.atom index.html \
|
|
|
|
|
favicon.ico default.css robots.txt csclub.der csclub.pem
|
|
|
|
|
SUBDIRS = about events office news services media buttons logos flash
|
|
|
|
|
|
|
|
|
|
include common.mk |
|
|
|
|
|
|
|
|
|
common.mk: common.mk.in |
|
|
|
|
echo 'ROOT = '`pwd` > $@
|
|
|
|
|
cat $< >> $@
|
|
|
|
|
|
|
|
|
|
build: noroot mkoutdir common.mk $(OUTPUTS) |
|
|
|
|
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i || exit 1); done
|
|
|
|
|
find ! -regex '.*/\..*' -type f ! -perm -0664 -print0 | xargs -r0 chmod u=rwX,g=rwX,o=rX || true
|
|
|
|
|
find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true
|
|
|
|
|
find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true
|
|
|
|
|
|
|
|
|
|
.PHONY += noroot
|
|
|
|
|
noroot: |
|
|
|
|
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi
|
|
|
|
|
|
|
|
|
@ -21,19 +27,3 @@ members.xml: |
|
|
|
|
|
|
|
|
|
events.ics: |
|
|
|
|
perl scripts/xml2ics.pl events.xml > events.ics
|
|
|
|
|
|
|
|
|
|
include default.mk |
|
|
|
|
|
|
|
|
|
%.atom: %.xml xsl/atom.xsl |
|
|
|
|
java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/atom.xsl $(XSLTARGS)
|
|
|
|
|
sed -i 's| xmlns=""||' $@
|
|
|
|
|
|
|
|
|
|
default.mk: default.mk.in |
|
|
|
|
echo 'ROOT = '`pwd` > $@
|
|
|
|
|
cat $< >> $@
|
|
|
|
|
make
|
|
|
|
|
exit $?
|
|
|
|
|
|
|
|
|
|
.PHONY: noroot |
|
|
|
|
noroot: |
|
|
|
|
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi
|
|
|
|
|