1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00
ampache/contrib/scripts/ampache_update.sh
2007-02-22 23:40:12 +00:00

42 lines
1.1 KiB
Bash
Executable file

#!/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