Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Wed, Jan 19, 2011 at 3:46 PM, Bircher Florian <florian.bi@gmx.net> wrote:
Hi,
I moved the full repo on win7. After that the symlinks where still
pointing to the old destination (they are absolute). The small patch
force the recreation of this links on ./g pull|clone.

for all my commits here:
Contributed under the LGPLv3+ / MPL

Ok, I'm confused:

+++ b/g
@@ -237,7 +237,7 @@ for REPO in $DIRS ; do
                     for link in $(ls) ; do
                         if [ ! -e "$RAWBUILDDIR/$link" ] ; then

If "$RAWBUILDDIR/$link" does not exist, why would you need to 'force'
the creation of the link ?

maybe you want
                         if [ ! -e "$RAWBUILDDIR/$link/." ] ; then
instead... just in case a dangling link pass the -e test on windows...

                             echo "Creating missing link $link"
-                            ln -s "$DIR/$link" "$RAWBUILDDIR/$link"
+                            ln -sf "$DIR/$link" "$RAWBUILDDIR/$link"
                         fi
                     done
                     ;;
-- 
1.7.3.3

Norbert




_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.