source: main/trunk/release-kits/shared/install-symlinks-for-externals.sh@ 21178

Last change on this file since 21178 was 21178, checked in by oranfry, 11 years ago

an updated script to create symlinks in place of externals

  • Property svn:executable set to *
File size: 472 bytes
Line 
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
15 fi
16 done
17 popd &> /dev/null
18done
19popd &> /dev/null
Note: See TracBrowser for help on using the repository browser.