Skip to content
Browse files

Unified the run command for contrib and others and added code to figu…

…re out the latest jar to run
  • Loading branch information...
1 parent 04a9249 commit 4377b21ee8710d7a5f440e8ea7821f2750310c39 @tomfaulhaber committed Oct 25, 2011
Showing with 9 additions and 13 deletions.
  1. +1 −1 run-all.sh
  2. +0 −11 run-contrib.sh
  3. +8 −1 run.sh
View
2 run-all.sh
@@ -16,5 +16,5 @@ done
for contrib in $contribs
do
- ./run-contrib.sh $contrib $commit
+ ./run.sh $contrib $commit
done
View
11 run-contrib.sh
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-project=$1
-
-if [ $# -lt 2 ]; then
- commit=true
-else
- commit=$2
-fi
-
-java -jar autodoc-standalone.jar --param-file=params/contrib.clj --param-key=$project --commit?=$commit
View
9 run.sh
@@ -8,4 +8,11 @@ else
commit=$2
fi
-java -jar autodoc-standalone.jar --param-dir=params/$file --commit?=$commit
+jar=`ls -t autodoc*-standalone.jar |head -1`
+
+if [ -d params/$file ]
+then
+ java -jar $jar --param-dir=params/$file --commit?=$commit
+else
+ java -jar $jar --param-file=params/contrib.clj --param-key=$file --commit?=$commit
+fi

0 comments on commit 4377b21

Please sign in to comment.
Something went wrong with that request. Please try again.