1. Shlomi Fish
  2. shlomif-computer-settings

Commits

Shlomi Fish  committed b208272

Update hg st .

  • Participants
  • Parent commits ac7c749
  • Branches default

Comments (0)

Files changed (1)

File shlomif-settings/home-bin-executables/old/add-new-files-to-manifest.sh

View file
 
 sort_manifest()
 {
-    cat MANIFEST | sort | uniq > MANIFEST.new
+    cat MANIFEST | (LC_ALL=C sort) | uniq > MANIFEST.new
     mv -f MANIFEST.new MANIFEST
 }
 
         perl -nle 'print if -f' \
         >> MANIFEST
     sort_manifest
+elif hg st . > /dev/null 2>&1 ; then
+    hg st . |
+        grep '^A' |
+        sed 's!^A[ +]*!!' |
+        perl -nle 'print if -f' \
+        >> MANIFEST
+    sort_manifest
 else
     echo "Error! It doesn't seem to be a legal working copy" 1>&2
     exit 1