]> gitweb.fluxo.info Git - unisyncer.git/commitdiff
Renaming script to sync-all
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 23 Sep 2014 01:10:46 +0000 (22:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 23 Sep 2014 01:10:46 +0000 (22:10 -0300)
sync-all [changed from symlink to file mode: 0755]
sync-code [changed from file to symlink]
sync-home
sync-irssi
sync-irssi-tor

deleted file mode 120000 (symlink)
index e737e417a396eca22656e2035e6145aa42447ec0..0000000000000000000000000000000000000000
--- a/sync-all
+++ /dev/null
@@ -1 +0,0 @@
-sync-code
\ No newline at end of file
new file mode 100755 (executable)
index 0000000000000000000000000000000000000000..1d1ccc966a44f76502bec68b722b6073a857b454
--- /dev/null
+++ b/sync-all
@@ -0,0 +1,51 @@
+#!/bin/bash
+#
+# sync code or home folder across systems
+#
+
+BASENAME="`basename $0`"
+DEST="$1"
+UNISON="unison"
+
+# Use the following config if you need to sync with legacy systems
+UNISON="unison-2.32.52"
+
+function sync_code_run {
+  local config="$1"
+
+  if [ -z "$config" ]; then
+    return
+  fi
+
+  if [ -f "$HOME/.unison/$config.prf" ]; then
+    echo "Starting sync using $config..."
+    $UNISON $config
+  else
+    echo "Skipping absent profile $config."
+    return
+  fi
+}
+
+if [ ! -z "$DEST" ]; then
+  profiles=""
+
+  if [ "$BASENAME" == "sync-code" ] || [ "$BASENAME" == "sync-all" ]; then
+    profiles="$profiles $DEST-code"
+  fi
+
+  if [ "$BASENAME" == "sync-irssi" ] || [ "$BASENAME" == "sync-all" ]; then
+    profiles="$profiles $DEST-irssi"
+  fi
+
+  if [ "$BASENAME" == "sync-irssi-tor" ] || [ "$BASENAME" == "sync-all" ]; then
+    profiles="$profiles $DEST-irssi-tor"
+  fi
+
+  if [ "$BASENAME" == "sync-home" ] || [ "$BASENAME" == "sync-all" ]; then
+    profiles="$profiles $DEST-home"
+  fi
+
+  for profile in $profiles; do
+    sync_code_run $profile
+  done
+fi
deleted file mode 100755 (executable)
index 1d1ccc966a44f76502bec68b722b6073a857b454..0000000000000000000000000000000000000000
--- a/sync-code
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-#
-# sync code or home folder across systems
-#
-
-BASENAME="`basename $0`"
-DEST="$1"
-UNISON="unison"
-
-# Use the following config if you need to sync with legacy systems
-UNISON="unison-2.32.52"
-
-function sync_code_run {
-  local config="$1"
-
-  if [ -z "$config" ]; then
-    return
-  fi
-
-  if [ -f "$HOME/.unison/$config.prf" ]; then
-    echo "Starting sync using $config..."
-    $UNISON $config
-  else
-    echo "Skipping absent profile $config."
-    return
-  fi
-}
-
-if [ ! -z "$DEST" ]; then
-  profiles=""
-
-  if [ "$BASENAME" == "sync-code" ] || [ "$BASENAME" == "sync-all" ]; then
-    profiles="$profiles $DEST-code"
-  fi
-
-  if [ "$BASENAME" == "sync-irssi" ] || [ "$BASENAME" == "sync-all" ]; then
-    profiles="$profiles $DEST-irssi"
-  fi
-
-  if [ "$BASENAME" == "sync-irssi-tor" ] || [ "$BASENAME" == "sync-all" ]; then
-    profiles="$profiles $DEST-irssi-tor"
-  fi
-
-  if [ "$BASENAME" == "sync-home" ] || [ "$BASENAME" == "sync-all" ]; then
-    profiles="$profiles $DEST-home"
-  fi
-
-  for profile in $profiles; do
-    sync_code_run $profile
-  done
-fi
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..4ae0e16972f06789ff63203de04e2fb7995479ad
--- /dev/null
+++ b/sync-code
@@ -0,0 +1 @@
+sync-all
\ No newline at end of file
index e737e417a396eca22656e2035e6145aa42447ec0..4ae0e16972f06789ff63203de04e2fb7995479ad 120000 (symlink)
--- a/sync-home
+++ b/sync-home
@@ -1 +1 @@
-sync-code
\ No newline at end of file
+sync-all
\ No newline at end of file
index e737e417a396eca22656e2035e6145aa42447ec0..4ae0e16972f06789ff63203de04e2fb7995479ad 120000 (symlink)
@@ -1 +1 @@
-sync-code
\ No newline at end of file
+sync-all
\ No newline at end of file
index e737e417a396eca22656e2035e6145aa42447ec0..4ae0e16972f06789ff63203de04e2fb7995479ad 120000 (symlink)
@@ -1 +1 @@
-sync-code
\ No newline at end of file
+sync-all
\ No newline at end of file