]> code.delx.au - gnu-emacs/blobdiff - update-subdirs
(window_system): Delete redundant variable.
[gnu-emacs] / update-subdirs
index d7e7012dadc322ce565d9f7708fd21d18b293f8a..336b6735abf8e30a64c985be744d0fb68f6f032d 100755 (executable)
@@ -27,9 +27,13 @@ for file in *; do
          ;;
        *)
            if [ -d $file ]; then
-             subdirs="\"$file\" $subdirs"
+               if [ "$file" = "obsolete" ]; then
+                   subdirs="$subdirs \"$file\""
+               else
+                   subdirs="\"$file\" $subdirs"
+               fi
            fi
-         ;;
+           ;;
     esac
 done
 
@@ -45,7 +49,11 @@ else
 ;; version-control: never
 ;; no-byte-compile: t
 ;; End:" > subdirs.el~
+  if cmp "subdirs.el" "subdirs.el~" >/dev/null 2>&1; then
+    :; # echo "subdirs.el unchanged";
+  else
   mv subdirs.el~ subdirs.el
+  fi
 fi
 
 # arch-tag: 56ebcf1b-5c30-4934-b0b4-72d374064704