2006-06-02 10:56:10 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2006-06-05 20:26:11 +01:00
|
|
|
|
|
|
|
cabextract $src
|
|
|
|
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp
|
|
|
|
cabextract ../vcsetup1.cab
|
|
|
|
rm ../vc* # reduce temporary disk usage a bit
|
|
|
|
|
|
|
|
while read target; do
|
|
|
|
read source
|
|
|
|
echo "$source -> $target"
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/$(dirname $target)
|
2006-06-05 21:23:24 +01:00
|
|
|
cp -p "$source" $out/"$target"
|
2006-06-05 20:26:11 +01:00
|
|
|
done < $filemap
|
|
|
|
|
2006-06-05 21:23:24 +01:00
|
|
|
# Make DLLs and executables executable.
|
|
|
|
find $out \( -iname "*.dll" -o -iname "*.exe" -o -iname "*.config" \) -print0 | xargs -0 chmod +x
|
|
|
|
|
2006-06-02 10:56:10 +01:00
|
|
|
cat > $out/setup <<EOF
|
2006-06-05 21:23:24 +01:00
|
|
|
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")"
|
2006-06-02 10:56:10 +01:00
|
|
|
EOF
|