2006-06-02 11:56:10 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $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"
|
|
|
|
ensureDir $out/$(dirname $target)
|
|
|
|
cp "$source" $out/"$target"
|
|
|
|
done < $filemap
|
|
|
|
|
2006-06-02 11:56:10 +02:00
|
|
|
cat > $out/setup <<EOF
|
2006-06-05 21:26:11 +02:00
|
|
|
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")"
|
2006-06-02 11:56:10 +02:00
|
|
|
EOF
|