File: fetchall

package info (click to toggle)
xtrkcad 20060529-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,200 kB
  • ctags: 7,866
  • sloc: ansic: 74,430; makefile: 1,127; sh: 298
file content (46 lines) | stat: -rwxr-xr-x 995 bytes parent folder | download | duplicates (4)
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
43
44
45
46
#!/bin/sh

fetchdir() {
	echo fetching $1
	mkdir $1
	( cd $1; ln -s ../$2/src/$1/RCS . ; co -r$RLSE Makefile ; co -r$RLSE `make rcssrc` )
}

if [ $# -lt 1 ] ; then
	echo fetchall RLSE
	exit 1
fi
RLSE=$1
if [ -d ~/xtrkcad/$RLSE ] ; then
	echo ~/xtrkcad/$RLSE exists
	exit 1
fi
if [ -d ~/wlib/$RLSE ] ; then
	echo ~/wlib/$RLSE exists
	exit 1
fi

mkdir ~/xtrkcad/$RLSE
cd ~/xtrkcad/$RLSE
fetchdir bin ..
fetchdir help ..
fetchdir lib ..
fetchdir lib/demos ../..
fetchdir lib/examples ../..
fetchdir lib/params ../..
fetchdir tools ..
mkdir ~/wlib/$RLSE
cd ~/wlib/$RLSE
fetchdir include ..
fetchdir mswlib ..
fetchdir test ..
fetchdir gtklib ..

mkdir ~/xtrkcad/$RLSE/help/images.orig
cp ~/xtrkcad/dev/help/images.orig/*.png ~/xtrkcad/$RLSE/help/images.orig
cp ~/xtrkcad/dev/bin/xtrkcad.ico ~/xtrkcad/$RLSE/bin/
cp ~/xtrkcad/dev/lib/register.* ~/xtrkcad/$RLSE/lib/
chmod 444 ~/xtrkcad/$RLSE/lib/register.*
cp ~/wlib/dev/test/wtest.ico ~/wlib/$RLSE/test/
ln -s ~/wlib/$RLSE ~/xtrkcad/$RLSE/bin/wlib