at v192 615 B view raw
1source $stdenv/setup 2 3mkdir -p $out 4 5cabextract $src 6 7mkdir tmp 8cd tmp 9cabextract ../vcsetup1.cab 10rm ../vc* # reduce temporary disk usage a bit 11 12while read target; do 13 read source 14 echo "$source -> $target" 15 mkdir -p $out/$(dirname $target) 16 cp -p "$source" $out/"$target" 17done < $filemap 18 19# Make DLLs and executables executable. 20find $out \( -iname "*.dll" -o -iname "*.exe" -o -iname "*.config" \) -print0 | xargs -0 chmod +x 21 22cat > $out/setup <<EOF 23export PATH="$out/VC/bin:$out/Common7/IDE:\$PATH" 24export LIB="$(cygpath -w -p "$out/VC/lib")" 25export INCLUDE="$(cygpath -w -p "$out/VC/include")" 26EOF