Ugly hacked in -N.
[nethome.git] / bin / diffgdbdir
index 1866de2..ef1941b 100755 (executable)
@@ -1,16 +1,26 @@
 #! /bin/sh
 
 x="*.log"
-o="-f"
-if [ "$1" = "-r" ];then
-       o="-r"
-       shift
-fi
-if [ "$1" = "log" ];then
-       x="*.sum"
-       o="-r"
-       shift
-fi
+o=""
+while true;do
+       if [ "$1" = "-r" ];then
+               o="$o -r"
+               shift
+               continue
+       fi
+       if [ "$1" = "-N" ];then
+               o="$o -N"
+               shift
+               continue
+       fi
+       if [ "$1" = "log" ];then
+               x="*.sum"
+               o="-r"
+               shift
+               continue
+       fi
+       break
+done
 
 if [ $# != 2 ];then
        echo >&2 "$0 hammock/xxxxyyzzname hammock/XXXXYYZZothername"