Cause make to die if ceoquery isn't present
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 26 Sep 2007 01:44:19 +0000 (21:44 -0400)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 26 Sep 2007 01:44:35 +0000 (21:44 -0400)
Makefile

index d75dbac..6987751 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ noroot:
        if test $$UID = 0; then echo "don't build as root!"; exit 1; fi
 
 members.xml:
+       test -e /usr/bin/ceoquery || (echo 'Erorr: ceoquery not found'; exit 1)
        echo '<?xml version='\''1.0'\''?>' > $@
        echo '<memberlist>' >> $@
        ceoquery memberlist | sort | awk -F \| '{ name = $$1; program = $$2; userid = $$3; gsub(/&/, "\\&amp;", name); gsub(/&/, "\\&amp;", program); gsub(/"/, "\\&quot;", name); gsub(/"/, "\\&quot;", program); print "<member name=\"" name "\" program=\"" program "\" userid=\"" userid "\" />"; }' >> $@