Ignore:
Timestamp:
12/02/09 09:15:41 (11 years ago)
Author:
oranfry
Message:

an updated script to create symlinks in place of externals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/install-symlinks-for-externals.sh

    r20336 r21178  
    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"
     1pushd .. &> /dev/null
     2for rk in *rk*; do
     3    pushd $rk &> /dev/null
     4    svn propget svn:externals . | while read ext_line; do
     5        if [ "$ext_line" != "" ]; then
     6            ext=$(echo $ext_line | sed 's/.*\s\+\(.*\)$/\1/')
     7            echo -n "$rk $ext"
     8            for dot in $( seq 0 $((30-${#rk}-${#ext})) ); do echo -n .; done
     9            if [ ! -e "$ext" ]; then
     10                echo " successfully created"
     11                ln -s $ext_line
     12            else
     13                echo " already present"
     14            fi
    815        fi
    916    done
    10 }
    11 
    12 #check they all exist first
    13 for rk in lirk2 wirk2 mark2 rk3 sork2 sork3 derk cdrk2; do
    14     if [ ! -d "../$rk" ]; then
    15         echo "$rk not present"
    16         some_not_present=true
    17     fi
     17    popd &> /dev/null
    1818done
    19 if [ "$some_not_present" == "true" ]; then
    20     exit
    21 fi
    22 
    23 linkup core rk3 lirk2 wirk2 mark2 sork2 sork3 derk cdrk2
    24 linkup greenstone2 lirk2 wirk2 mark2 sork2 cdrk2
    25 linkup greenstone3 rk3 sork3
    26 linkup linux rk3 lirk2 mark2 sork2 sork3 derk cdrk2
    27 linkup windows rk3 wirk2 sork2 sork3 cdrk2
    28 linkup mac rk3 mark2
    29 
     19popd &> /dev/null
Note: See TracChangeset for help on using the changeset viewer.