summaryrefslogtreecommitdiffstats
path: root/contrib/scripts/ampache_update.sh
blob: db30f83b006e3b278e528ec1cb9f0272d0ef9f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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