aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/pure-data-cvs-rsync-checkout
blob: 43ece03578c7b773a903afd3954d48cb38d55b10 (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
#!/bin/sh
# update from the local CVS repository

# the source dir where this script is
SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'`
. $SCRIPT_DIR/auto-build-common

# the name of this script
SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt

touch $LOGFILE

# extended
echo "------------------------------------------------------------"	>> $LOGFILE 2>&1
echo "pd-extended"	>> $LOGFILE 2>&1
echo "------------------------------------------------------------"	>> $LOGFILE 2>&1
su pd -c "/home/pd/rsync/pd-extended/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1

# devel
echo "------------------------------------------------------------"	>> $LOGFILE 2>&1
echo "pd-devel"	>> $LOGFILE 2>&1
echo "------------------------------------------------------------"	>> $LOGFILE 2>&1
su pd -c "cd /home/pd/rsync/pd-devel/pd && cvs up -Pd" >> $LOGFILE 2>&1
su pd -c "/home/pd/rsync/pd-devel/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1

# main
echo "------------------------------------------------------------"	>> $LOGFILE 2>&1
echo "pd-main"	>> $LOGFILE 2>&1
echo "------------------------------------------------------------"	>> $LOGFILE 2>&1
su pd -c "cd /home/pd/rsync/pd-main/pd && cvs up -APd" >> $LOGFILE 2>&1
su pd -c "/home/pd/rsync/pd-main/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1