aboutsummaryrefslogtreecommitdiff
path: root/scripts/update-developer-layout.sh
blob: 9f2b9977f736ddc8da5102179c6080f7d0501bbf (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
#!/bin/sh

# this script updates all code from subversion in the standard developer's layout.
# <hans@at.or.at>

# Usage: just run it and it should find things if you have your stuff layed
# out in the standard dev layout, or used checkout-developer-layout.sh to
# checkout your pd source tree

cvs_root_dir=$(echo $0 | sed 's|\(.*\)/.*$|\1|')/..

SVNOPTIONS="--ignore-externals"

cd $cvs_root_dir
echo "Running svn update:"
svn update ${SVNOPTIONS}
echo "Running svn update for svn-externals individually:"
for section in externals/*; do
	 echo "Section: $section"
	 cd $section
         svn update ${SVNOPTIONS}
	 cd ../..
done

echo "Running svn update for other sections:"
for section in abstractions doc externals packages pd scripts; do
	 echo "Section: $section"
	 cd $section
         svn update ${SVNOPTIONS}
	 cd ..
done

test -e $dir/pd/.git && \
    cd $dir/pd && git pull origin master