source: release-kits/shared/install-symlinks-for-externals.sh@ 20110

Last change on this file since 20110 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 
1function 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
13for 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
18done
19if [ "$some_not_present" == "true" ]; then
20 exit
21fi
22
23linkup core lirk2 lirk3 wirk2 wirk3 mark2 mark3 sork2 sork3 derk cdrk2
24linkup greenstone2 lirk2 wirk2 mark2 sork2 cdrk2
25linkup greenstone3 lirk3 wirk3 mark3 sork3
26linkup linux lirk2 lirk3 mark2 mark3 sork2 sork3 derk cdrk2
27linkup windows wirk2 wirk3 sork2 sork3 cdrk2
28linkup mac mark2 mark3
29
30
Note: See TracBrowser for help on using the repository browser.