Peter Szilagyi  committed c3670b2

bin/ More tweaking and worked around a bug in "sink deploy dir".

  • Participants
  • Parent commits 408e720
  • Tags 2012-10-19-roll-test

Comments (0)

Files changed (1)

File bin/

-dot=$(dirname "$0")/            # for script-relative filenames
+dot=$(dirname "$0")             # for script-relative filenames
 # Log the cwd and command and some version information.
-message="$(pwd)/$(basename "$0") $*
-$(cd "$dot/".. && echo "$(pwd) : $(hg paths default) $(hg id -i)")
-$(cd "$dot/"../.. && echo "$(pwd) : $(hg paths default) $(hg id -i)")"
+# This has to be pretty narrow to look good in "sink history list".
+  $0 $*
+$(cd "$dot/".. && echo "$(pwd):
+  $(hg paths default)
+    $(hg id -i)")
+$(cd "$dot/"../.. && echo "$(pwd):
+  $(hg paths default)
+    $(hg id -i)")"
+# Delete a few of the biggest wastes of space before sink'ing.
+# Really, need "sink deploy dir -exclude" to skip these.
+# (Fortunately, "sink deploy dir" does already exclude ../.hg.)
+find "$dot/".. \( \
+    -name '.nfs*' -o \
+    -name '*.cm[xit]' -o \
+    -name 'doit.exe' \) -print0 | xargs -r0tn1 rm
+temp=$(mktemp -d)
+trap 'rm -r "$temp"' 0
 set -x
 #(cd "$dot/".. && omake)
 test -x "$dot/"../ocaml/omake/omake_server.exe
-for office in "${!office_qwss[@]}"; do
+ln -sf $(cd "$dot/".. && pwd) "$jane_elisp"
+for office in "${!office_qwss[@]}"
     #ssh "$host" "mkdir -p '$target'"
-    sink deploy dir "$dot/".. "$host:$target" -message "$message"
+    # "sink deploy dir" doesn't work with weird directory names like
+    # "bin/.." (yet) and doesn't rename directories as it installs
+    # them (instead, the target is a directory into which to install,
+    # not a new name).
+    #
+    #sink deploy dir "$dot/".. "$host:$target/jane-elisp" -message "$message"
+    sink deploy dir "$jane_elisp" "$host:$target" -message "$message"