[PATCH] git warpper: forcing the recreation of symlinks
Florian Bircher
florian.bi at gmx.net
Wed Jan 19 15:15:36 PST 2011
---
g | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/g b/g
index 2f6fcd4..4d143c3 100755
--- a/g
+++ b/g
@@ -233,13 +233,16 @@ for REPO in $DIRS ; do
case "$COMMAND" in
pull|clone)
- # update links
- for link in $(ls) ; do
- if [ ! -e "$RAWBUILDDIR/$link" ] ; then
- echo "Creating missing link $link"
- ln -s "$DIR/$link" "$RAWBUILDDIR/$link"
- fi
- done
+ # Only update the Links when your not in main-repo (bootstrap)
+ if [ "$RAWBUILDDIR" != "$DIR" ] ; then
+ # update links
+ for link in $(ls) ; do
+ if [ ! -e "$RAWBUILDDIR/$link" ] ; then
+ echo "Creating missing link $link"
+ ln -sf "$DIR/$link" "$RAWBUILDDIR/$link"
+ fi
+ done
+ fi
;;
status)
# git status returns error in some versions, clear that
--
1.7.3.3
--------------010605010702000005080705--
More information about the LibreOffice
mailing list