~amsn-daily/amsn/amsn-packaging

« back to all changes in this revision

Viewing changes to utils/update-amsn.sh

  • Committer: djrafa
  • Date: 2004-01-19 19:05:44 UTC
  • Revision ID: svn-v4:f248a3e1-9e13-0410-b2cf-a4429de6d898:trunk/amsn:1808
Added amsn-update script

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
##############################################################################
 
3
#This is a simple script to update aMsn from CVS and link
 
4
#the skins in amsn-extras directory right.
 
5
#
 
6
#Rafael Rodr�guez. apt-drink@telefonica.net
 
7
#
 
8
#v0.1: 18/01/03
 
9
##############################################################################
 
10
 
 
11
AMSNPATH=~/msn
 
12
EXTRASPATH=~/msn/amsn-extras
 
13
 
 
14
cd ${AMSNPATH}
 
15
echo "Updating amsn..."
 
16
cvs -f -q update -d -P "."
 
17
cd ${EXTRASPATH}
 
18
echo "Updating amsn-extras..."
 
19
cvs -f -q update -d -P "."
 
20
 
 
21
cd ${EXTRASPATH}/skins
 
22
for SKIN in *
 
23
do
 
24
        if [ $SKIN != "CVS" ]; then
 
25
                if [ ! -e "${AMSNPATH}/skins/${SKIN}" ]; then   #Link already exists?
 
26
                        echo "Linking skin ${SKIN}..."
 
27
                        ln -s ${EXTRASPATH}/skins/${SKIN} ${AMSNPATH}/skins/${SKIN}
 
28
                else
 
29
                        echo "Not linking skin ${SKIN}. Link already exists..."
 
30
                fi
 
31
        fi
 
32
done
 
33