auto generation of tarballs for mir.indymedia.org - sample scripts
authorrk <rk>
Sat, 2 Feb 2002 13:15:58 +0000 (13:15 +0000)
committerrk <rk>
Sat, 2 Feb 2002 13:15:58 +0000 (13:15 +0000)
scripts/autotar/README [new file with mode: 0755]
scripts/autotar/preinstall.sh [new file with mode: 0755]
scripts/autotar/updatetarballs.sh [new file with mode: 0755]

diff --git a/scripts/autotar/README b/scripts/autotar/README
new file mode 100755 (executable)
index 0000000..3bb415b
--- /dev/null
@@ -0,0 +1,3 @@
+Sample scrips for autmatic tarball generation for mir.indymedia.org.
+Not ready yet.
+
diff --git a/scripts/autotar/preinstall.sh b/scripts/autotar/preinstall.sh
new file mode 100755 (executable)
index 0000000..e1245ea
--- /dev/null
@@ -0,0 +1,18 @@
+mkdir mir
+mkdir mirstable
+mkdir tarballs
+
+#
+# stable part
+
+cd mirstable
+cvs co -r STABLE-pre1_0 co
+cd ..
+
+#
+# unstable part
+
+cd mir
+cvs co mir
+cd ..
+
diff --git a/scripts/autotar/updatetarballs.sh b/scripts/autotar/updatetarballs.sh
new file mode 100755 (executable)
index 0000000..243dda5
--- /dev/null
@@ -0,0 +1,31 @@
+#
+# this script makes four tarballs:
+# 
+# 1. STABLE-pre1_0: with and without libs
+# 2. current with and without libs
+
+MIR_TARHOME=/home/rk/autotar/tarballs
+MIR_HOME=/home/rk/autotar/mir
+MIR_STABLEHOME=/home/rk/autotar/mirstable
+
+
+
+echo "[updating cvs stable in $MIR_STABLEHOME]"
+cd $MIR_STABLEHOME/mir
+cvs -q update -dP
+cd ..
+echo "[tar stable in $MIR_TARHOME] .."
+tar cfz $MIR_TARHOME/mir_stable.tar.gz --exclude "mir/lib" --exclude "CVS" mir
+echo "[tar stable+libs in $MIR_TARHOME] .."
+tar cfz $MIR_TARHOME/mir_stable+libs.tar.gz --exclude "CVS" mir
+
+echo "[updating cvs current in $MIR_HOME]"
+cd $MIR_HOME/mir
+cvs -q update -dP
+cd ..
+
+echo "[tar current in $MIR_TARHOME] .."
+tar cfz $MIR_TARHOME/mir.tar.gz --exclude "mir/lib" --exclude "CVS" mir
+echo "[tar current+libs in $MIR_TARHOME] .."
+tar cfz $MIR_TARHOME/mir+libs.tar.gz --exclude "CVS" mir
+