aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/auto-build/pure-data-rsync34
-rwxr-xr-xscripts/rsync-source-repos-from-sourceforge.sh33
2 files changed, 33 insertions, 34 deletions
diff --git a/scripts/auto-build/pure-data-rsync b/scripts/auto-build/pure-data-rsync
deleted file mode 100755
index f868418e..00000000
--- a/scripts/auto-build/pure-data-rsync
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-# rsync the SVN source files from SourceForge to make a local copy
-
-# the source dir where this script is
-SCRIPT_DIR=$(echo $0 | sed 's|\(.*\)/.*$|\1|')
-. $SCRIPT_DIR/auto-build-common
-
-# the name of this script
-SCRIPT=$(echo $0| sed 's|.*/\(.*\)|\1|g')
-
-LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
-
-VERBOSE_FLAGS=-v
-#VERBOSE_FLAGS="-v --progress"
-
-touch $LOGFILE
-
-echo "rsync pure-data" >> $LOGFILE 2>&1
-echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
-(/usr/bin/rsync -ax $VERBOSE_FLAGS --delete pure-data.svn.sourceforge.net::svn/pure-data/ /home/pd/svnroot/pure-data/ || /usr/bin/logger -i -p local6.warning -t "$0" "rsync pure-data SVN FAILED") >> $LOGFILE 2>&1
-
-echo "rsync pd-gem" >> $LOGFILE 2>&1
-echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
-(/usr/bin/rsync -ax $VERBOSE_FLAGS --delete pd-gem.svn.sourceforge.net::svn/pd-gem/ /home/pd/svnroot/pd-gem || /usr/bin/logger -i -p local6.warning -t "$0" "rsync pd-gem SVN FAILED") >> $LOGFILE 2>&1
-
-echo "chown -R pd.pd /home/pd/cvsroot" >> $LOGFILE 2>&1
-echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
-chown -R pd.pd /home/pd/cvsroot >> $LOGFILE 2>&1
-
-echo "chown -R pd.pd /home/pd/svnroot" >> $LOGFILE 2>&1
-echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
-chown -R pd.pd /home/pd/svnroot >> $LOGFILE 2>&1
-
-
diff --git a/scripts/rsync-source-repos-from-sourceforge.sh b/scripts/rsync-source-repos-from-sourceforge.sh
new file mode 100755
index 00000000..32390120
--- /dev/null
+++ b/scripts/rsync-source-repos-from-sourceforge.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# rsync the SVN source files from SourceForge to make a local copy
+
+LOGFILE=/tmp/rsync-source-repos-from-sourceforge.sh.txt
+
+VERBOSE_FLAGS=-v
+#VERBOSE_FLAGS="-v --progress"
+
+echo "" > $LOGFILE
+
+test -d pure-data-backups || mkdir pure-data-backups
+cd pure-data-backups
+
+test -d svnroot || mkdir svnroot >> $LOGFILE 2>&1
+cd svnroot
+
+echo "rsync pure-data svn" >> $LOGFILE 2>&1
+echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
+/usr/bin/rsync -ax $VERBOSE_FLAGS --delete pure-data.svn.sourceforge.net::svn/pure-data/ svnroot/pure-data/ >> $LOGFILE 2>&1
+
+cd ..
+test -d gitroot || mkdir gitroot >> $LOGFILE 2>&1
+cd gitroot
+
+echo "rsync pure-data git" >> $LOGFILE 2>&1
+echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
+/usr/bin/rsync -av $VERBOSE_FLAGS --delete pure-data.git.sourceforge.net::gitroot/pure-data/* . >> $LOGFILE 2>&1
+
+echo "rsync pd-gem git" >> $LOGFILE 2>&1
+echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1
+/usr/bin/rsync -av $VERBOSE_FLAGS --delete pd-gem.git.sourceforge.net::gitroot/pd-gem/* . >> $LOGFILE 2>&1
+
+