From 64010fcbba2a1f946b870dc99153c62f12df2239 Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Mon, 23 Sep 2013 11:37:05 +1000 Subject: [PATCH] erlang R16B02 --- erlang.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 erlang.json diff --git a/erlang.json b/erlang.json new file mode 100644 index 0000000000..7ef474f5a8 --- /dev/null +++ b/erlang.json @@ -0,0 +1,46 @@ +{ + "homepage": "http://www.erlang.org", + "version": "R16B02", + "license": "http://www.erlang.org/EPLICENSE", + "architecture": { + "64bit": { + "url": "http://www.erlang.org/download/otp_win64_R16B02.exe#/dl.bzip", + "hash": "8f2f50e377319d364938475b1492f44d257eafd67c23f90246799bf87158a452" + }, + "32bit": { + "url": "http://www.erlang.org/download/otp_win32_R16B02.exe#/dl.bzip", + "hash": "504a7ce4d44e2558b400e64135b6e164d48980cd27b2f869321c5f4d799198b2" + } + }, + "extract_dir": "$_OUTDIR", + "bin": [ + "bin\\erl.exe" + ], + "post_install": " +$ini = \"$dir\\bin\\erl.ini\" +$escdir = $dir -replace '\\\\', '\\\\' +'[erlang]' | out-file $ini -encoding default +\"Bindir=$escdir\\\\erts-5.10.3\\\\bin\" | out-file $ini -encoding default -append +'Progname=erl' | out-file $ini -encoding default -append +\"Rootdir=$escdir\" | out-file $ini -encoding default -append + +ls -dir \"$dir\" | ? name -match '-(\\d+\\.)+\\d+$' | cp -r -force -dest \"$dir.\\lib\" +ls -dir \"$dir\" | ? name -match '-(\\d+\\.)+\\d+$' | rm -r + +$null = mkdir \"$dir\\releases\" + +$null = mkdir \"$dir\\erts-5.10.3\" +cp -r \"$dir\\bin\" \"$dir\\erts-5.10.3\\bin\" +mv \"$dir\\include\" \"$dir\\erts-5.10.3\\include\" +mv \"$dir\\src\" \"$dir\\erts-5.10.3\\src\" + +rm -r \"$dir\\`$PLUGINSDIR\" + +$null = mkdir \"$dir\\erts-5.10.3\\lib\" +mv \"$dir\\lib\\*.lib\" \"$dir\\erts-5.10.3\\lib\" +mv \"$dir\\lib\\internal\" \"$dir\\erts-5.10.3\\lib\\internal\" + +cp \"$dir\\R16B02\\*.boot\" \"$dir\\bin\" +mv \"$dir\\R16B02\" \"$dir\\releases\\R16B02\" +" +} \ No newline at end of file