Last change
on this file since 20190 was 20110, checked in by oranfry, 15 years ago |
a script to install symlinks where externals would be, which saves on disk space, time and confusion
|
-
Property svn:executable
set to
*
|
File size:
703 bytes
|
Line | |
---|
1 | function linkup() {
|
---|
2 | local component=$1
|
---|
3 | shift
|
---|
4 | #do core
|
---|
5 | for rk in $*; do
|
---|
6 | if [ ! -e "../$rk/$component" ]; then
|
---|
7 | ln -s "../shared/$component" "../$rk"
|
---|
8 | fi
|
---|
9 | done
|
---|
10 | }
|
---|
11 |
|
---|
12 | #check they all exist first
|
---|
13 | for rk in lirk2 lirk3 wirk2 wirk3 mark2 mark3 sork2 sork3 derk cdrk2; do
|
---|
14 | if [ ! -d "../$rk" ]; then
|
---|
15 | echo "$rk not present"
|
---|
16 | some_not_present=true
|
---|
17 | fi
|
---|
18 | done
|
---|
19 | if [ "$some_not_present" == "true" ]; then
|
---|
20 | exit
|
---|
21 | fi
|
---|
22 |
|
---|
23 | linkup core lirk2 lirk3 wirk2 wirk3 mark2 mark3 sork2 sork3 derk cdrk2
|
---|
24 | linkup greenstone2 lirk2 wirk2 mark2 sork2 cdrk2
|
---|
25 | linkup greenstone3 lirk3 wirk3 mark3 sork3
|
---|
26 | linkup linux lirk2 lirk3 mark2 mark3 sork2 sork3 derk cdrk2
|
---|
27 | linkup windows wirk2 wirk3 sork2 sork3 cdrk2
|
---|
28 | linkup mac mark2 mark3
|
---|
29 |
|
---|
30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.