2006-06-02 11:56:10 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2006-06-05 21:26:11 +02: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 21:16:00 +01:00
|
|
|
mkdir -p $out/$(dirname $target)
|
2006-06-05 22:23:24 +02:00
|
|
|
cp -p "$source" $out/"$target"
|
2006-06-05 21:26:11 +02:00
|
|
|
done < $filemap
|
|
|
|
|
2006-06-05 22:23:24 +02:00
|
|
|
# Make DLLs and executables executable.
|
|
|
|
find $out \( -iname "*.dll" -o -iname "*.exe" -o -iname "*.config" \) -print0 | xargs -0 chmod +x
|
|
|
|
|
2006-06-02 11:56:10 +02:00
|
|
|
cat > $out/setup <<EOF
|
2006-06-05 22:23:24 +02: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 11:56:10 +02:00
|
|
|
EOF
|