* Make it work.

svn path=/nixpkgs/trunk/; revision=5385
This commit is contained in:
Eelco Dolstra 2006-06-05 20:23:24 +00:00
parent d571eaafb3
commit fef1bdfad1

View File

@ -13,11 +13,14 @@ while read target; do
read source
echo "$source -> $target"
ensureDir $out/$(dirname $target)
cp "$source" $out/"$target"
cp -p "$source" $out/"$target"
done < $filemap
# Make DLLs and executables executable.
find $out \( -iname "*.dll" -o -iname "*.exe" -o -iname "*.config" \) -print0 | xargs -0 chmod +x
cat > $out/setup <<EOF
export PATH="$out/VC/bin:$out/Common7/IDE:$sdkPath/bin:\$PATH"
export LIB="$(cygpath -w -p "$out/VC/lib:$sdkPath/lib")"
export INCLUDE="$(cygpath -w -p "$out/VC/include:$sdkPath/include")"
export PATH="$out/VC/bin:$out/Common7/IDE:\$PATH"
export LIB="$(cygpath -w -p "$out/VC/lib")"
export INCLUDE="$(cygpath -w -p "$out/VC/include")"
EOF