[Libreoffice] [PATCH] g warper: forcing the recreation of symlinks
nthiebaud at gmail.com
Wed Jan 19 14:03:35 PST 2011
On Wed, Jan 19, 2011 at 3:46 PM, Bircher Florian <florian.bi at gmx.net> wrote:
> 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:
@@ -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"
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
More information about the LibreOffice