Subversion Repositories HelenOS

Rev

Rev 2164 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2157 jancik 1
# by Alf
2
# This script solves malfunction of symlinks in cygwin
3
# 
4
# Download sources from repository and than run this script to correct symlinks 
5
#   to be able compile project
6
 
7
 
2164 jancik 8
if uname | grep 'CYGWIN' > /dev/null; then
2157 jancik 9
  echo "Good ... you have cygwin"
10
else
2164 jancik 11
  echo "Wrong. This script is only for cygwin"
2157 jancik 12
  exit
13
fi
14
 
15
for linkName in `find . ! -iwholename '.*svn*' ! -type d -print`; do
16
  if head -n 1 $linkName | grep '^link' > /dev/null; then
17
     linkTarget=`head -n 1 $linkName | sed 's/^link //'`
18
     echo $linkName " -->" $linkTarget
19
     rm $linkName
20
     ln -s "$linkTarget" "$linkName"
21
   fi  
22
done
23
 
24
 
25
 
26
 
27
 
28
 
29