[Libreoffice] [PATCH] g warper: forcing the recreation of symlinks

Bircher Florian florian.bi at gmx.net
Wed Jan 19 14:36:21 PST 2011


for cygwin -e check seems to check if the "target of the symlink"
exists, not the symlink ifself...
But there is a error in the script that this function gets called in the
main repro (bootstrap) ... and create symlinks like "ln -s test test".

I will create a new patch.


Am 19.01.2011 23:03, schrieb Norbert Thiebaud:
> 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
>                      ;;



More information about the LibreOffice mailing list