summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2007-02-22 23:40:12 +0000
committerpb1dft <pb1dft@ampache>2007-02-22 23:40:12 +0000
commit6a660dcb5f2bc9b93fdf601309a4cba90ccd5578 (patch)
tree20720c4d56b2b7b0c89ba73a9bde6656f4f968e3 /contrib
parent710a3eec6005cc60e63329f44fb539e326f0651a (diff)
downloadampache-6a660dcb5f2bc9b93fdf601309a4cba90ccd5578.tar.gz
ampache-6a660dcb5f2bc9b93fdf601309a4cba90ccd5578.tar.bz2
ampache-6a660dcb5f2bc9b93fdf601309a4cba90ccd5578.zip
Added a script dir to contrib
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/ampache_update.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/contrib/scripts/ampache_update.sh b/contrib/scripts/ampache_update.sh
new file mode 100755
index 00000000..db30f83b
--- /dev/null
+++ b/contrib/scripts/ampache_update.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+################################################
+# #
+# Update ampache through svn #
+# #
+################################################
+
+################################################
+# #
+# Base Path of ampache #
+# Change this to you're ampache base_path #
+# #
+################################################
+
+base_path=/srv/www/ampache
+
+################################################
+# #
+# No need to change anything beneath this line #
+# #
+################################################
+
+path=`pwd`
+
+echo "Updating Ampache Core Application"
+cd $base_path
+svn up
+svnversion -n . > version.php
+
+for theme in `ls -d themes/*`
+ do
+ cd $theme
+ name=`grep name theme.cfg.php | grep = | tr '=' ' ' |awk '{print $2}'`
+ echo "Updating Ampache Theme $name"
+ svn up
+ cd ../../
+
+ done
+
+
+cd $path