make it possible to build only selected contribs
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 10 Nov 2011 11:23:51 +0000 (13:23 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 10 Nov 2011 12:12:59 +0000 (14:12 +0200)
  Not for users as such, but for poking at specific contribs with a faster
  turnaround.

make-target-contrib.sh

index b7906d4..bcff011 100644 (file)
@@ -61,7 +61,15 @@ find output -name 'building-contrib.*' -print | xargs rm -f
 CL_SOURCE_REGISTRY='(:source-registry :ignore-inherited-configuration)'
 export CL_SOURCE_REGISTRY
 
-for i in contrib/*; do
+if [ -z "$@" ]; then
+    contribs_to_build=contrib/*
+else
+    for name in $@; do
+        contribs_to_build="contrib/$name $contribs_to_build"
+    done
+fi
+
+for i in $contribs_to_build; do
     test -d $i && test -f $i/Makefile || continue;
     # export INSTALL_DIR=$SBCL_HOME/`basename $i `
     test -f $i/test-passed && rm $i/test-passed