Jump to content

Problem with ./update-workspaces.sh


Recommended Posts

Hi,

I tried to compile the program, but i went into problem when running the command ./update-workspaces.sh

The problem is, my working directory contains spaces, so the path is incorrect. I corrected the script as follow :

#!/bin/sh

# build/workspaces/

start_dir=$(pwd)
premake_dir=$(pwd)/../premake
workspace_dir=$(pwd)/gcc
mkdir "$workspace_dir" 2>/dev/null

cd "$premake_dir"

# build/premake/

make -C src
HOSTTYPE=$HOSTTYPE ./premake --outpath "$workspace_dir" --atlas --collada "$@" --target gnu

# These files need to be linked; premake makefiles assume that the
# lua file is accessible from the makefile directory

cd "$workspace_dir"
ln -f -s "$premake_dir"/premake.lua "$premake_dir"/functions.lua .
if [ -x "$premake_dir"/premake ]; then
ln -f -s "$premake_dir"/premake .
fi

cd "$start_dir"

I just added some "" around paths.

I hope it helps.

Edited by tatrefthekiller
Link to comment
Share on other sites

Committed your fixed version to SVN. Thanks!

Make a diff and open up a ticket. I don't know how active devs are on this forum.

We're more active here than on Trac, though posting patches to Trac is probably a better idea since it reduces the chance of them slipping through cracks.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...