lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 6f2dfd1 was afb1e35, checked in by Martin Decky <martin@…>, 17 years ago |
cleanup scripts
|
-
Property mode
set to
100644
|
File size:
611 bytes
|
Rev | Line | |
---|
[afb1e35] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[6b781c0] | 3 | # by Alf
|
---|
| 4 | # This script solves malfunction of symlinks in cygwin
|
---|
| 5 | #
|
---|
| 6 | # Download sources from repository and than run this script to correct symlinks
|
---|
| 7 | # to be able compile project
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | if uname | grep 'CYGWIN' > /dev/null; then
|
---|
[afb1e35] | 11 | echo "Good ... you have cygwin"
|
---|
[6b781c0] | 12 | else
|
---|
[afb1e35] | 13 | echo "Wrong. This script is only for cygwin"
|
---|
| 14 | exit
|
---|
[6b781c0] | 15 | fi
|
---|
| 16 |
|
---|
| 17 | for linkName in `find . ! -iwholename '.*svn*' ! -type d -print`; do
|
---|
[afb1e35] | 18 | if head -n 1 $linkName | grep '^link' > /dev/null; then
|
---|
| 19 | linkTarget=`head -n 1 $linkName | sed 's/^link //'`
|
---|
| 20 | echo $linkName " -> " $linkTarget
|
---|
| 21 | rm $linkName
|
---|
| 22 | ln -s "$linkTarget" "$linkName"
|
---|
| 23 | fi
|
---|
[6b781c0] | 24 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.