2006-06-05 21:40:14 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2006-06-05 21:40:14 +02:00
|
|
|
|
2006-06-06 00:03:52 +02:00
|
|
|
n=1
|
|
|
|
for p in $srcs; do
|
|
|
|
ln -s $p PSDK-FULL.$n.cab
|
|
|
|
n=$((n + 1))
|
|
|
|
done
|
2006-06-05 21:40:14 +02:00
|
|
|
|
2006-06-06 00:03:52 +02:00
|
|
|
mkdir tmp
|
|
|
|
cd tmp
|
|
|
|
cabextract ../PSDK-FULL.1.cab
|
2006-06-05 21:40:14 +02:00
|
|
|
|
2006-06-06 00:03:52 +02:00
|
|
|
mkdir tmp
|
|
|
|
cd tmp
|
|
|
|
for i in ../Setup/*.cab; do
|
|
|
|
cabextract $i
|
|
|
|
done
|
|
|
|
|
|
|
|
while read target; do
|
|
|
|
read source
|
|
|
|
echo "$source -> $target"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/$(dirname "$target")"
|
2006-06-06 00:03:52 +02:00
|
|
|
cp "$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
|
2006-06-05 21:40:14 +02:00
|
|
|
|
|
|
|
cat > $out/setup <<EOF
|
|
|
|
export PATH="$out/bin:\$PATH"
|
|
|
|
export LIB="$(cygpath -w -p "$out/lib");\$LIB"
|
|
|
|
export INCLUDE="$(cygpath -w -p "$out/include");\$INCLUDE"
|
|
|
|
EOF
|