Commit in SlacMCPrj/scripts on MAIN | |||
slic-version.sh | +9 | added 1.1 |
JM: script for extracting the numeric portion of the slic version string
diff -N slic-version.sh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ slic-version.sh 2 Nov 2007 18:27:39 -0000 1.1 @@ -0,0 +1,9 @@
+#!/bin/sh + +if [ -z "$1" ]; then +slic=slic +else +slic=$1 +fi + +$slic -v | grep -o 'v[0-9]*r[0-9]*p[0-9]'