support operating only on supported kernels
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 16 May 2022 21:08:37 +0000 (17:08 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 16 May 2022 21:08:37 +0000 (17:08 -0400)
4a-gits

diff --git a/4a-gits b/4a-gits
index 913f056aa32e613950c088ccb8b39f3fa017ac81..0ed57c52b93bd2a006b2173b5d31b4c0e292bb42 100755 (executable)
--- a/4a-gits
+++ b/4a-gits
@@ -1,14 +1,21 @@
 #!/bin/sh
 
 LIST=`echo wrapfs-2* wrapfs-3.[0-9] wrapfs-3.[0-9][0-9] wrapfs-4.[0-9] wrapfs-4.[0-9][0-9]`
-#LIST=`echo  wrapfs-4.1[1-9]  wrapfs-4.2[0-9]`
 LIST="$LIST "`echo wrapfs-5.[0-9] wrapfs-5.[0-9][0-9]`
+STABLE="wrapfs-4.9 wrapfs-4.14 wrapfs-4.19 wrapfs-5.4 wrapfs-5.10 wrapfs-5.15 wrapfs-5.17"
 
 if test -z "$1" ; then
-       echo "Usage: $0 [+l] cmd [args...]"
+       echo "Usage: $0 [+ls] cmd [args...]"
+       echo "       +l: include wrapfs-latest"
+       echo "       +s: include only stable versions"
        exit 1
 fi
 
+if test "$1" = "+s" ; then
+       LIST="$STABLE"
+       shift
+fi
+
 if test "$1" = "+l" ; then
        LIST="${LIST} wrapfs-latest"
        shift
@@ -16,6 +23,7 @@ fi
 
 for i in $LIST
 do
+       echo
        echo :::$i:::
        test -d "$i" || continue
        echo "(cd $i && $@)"