|
|
|
@ -19,11 +19,4 @@ build: noroot mkoutdir common.mk $(OUTPUTS) force |
|
|
|
|
noroot: |
|
|
|
|
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi
|
|
|
|
|
|
|
|
|
|
members.xml: |
|
|
|
|
test -e /usr/bin/ceoquery || (echo 'Error: ceoquery not found'; exit 1)
|
|
|
|
|
echo '<?xml version='\''1.0'\''?>' > $@
|
|
|
|
|
echo '<memberlist>' >> $@
|
|
|
|
|
ceoquery memberlist | sort | awk -F \| '{ name = $$1; program = $$2; userid = $$3; gsub(/&/, "\\&", name); gsub(/&/, "\\&", program); gsub(/"/, "\\"", name); gsub(/"/, "\\"", program); print "<member name=\"" name "\" program=\"" program "\" userid=\"" userid "\" />"; }' >> $@
|
|
|
|
|
echo '</memberlist>' >> $@
|
|
|
|
|
|
|
|
|
|
$(OUTDIR)index.html: events.xml news.xml |
|
|
|
|