From dcf8210b43077ed6a12d73e0d7d3d7edcbbe3e55 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 20 Oct 2021 09:53:27 +0800 Subject: *misc --- .../Libraries/LiteJson/bench/get_json_libs.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Resources/DefaultContent/Libraries/LiteJson/bench/get_json_libs.sh (limited to 'Resources/DefaultContent/Libraries/LiteJson/bench/get_json_libs.sh') diff --git a/Resources/DefaultContent/Libraries/LiteJson/bench/get_json_libs.sh b/Resources/DefaultContent/Libraries/LiteJson/bench/get_json_libs.sh new file mode 100644 index 0000000..ecb4525 --- /dev/null +++ b/Resources/DefaultContent/Libraries/LiteJson/bench/get_json_libs.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# Downloads other JSON libraries for use in the benchmark scripts + +# Remove libraries +rm dkjson.lua 2>/dev/null +rm jfjson.lua 2>/dev/null +rm json4lua.lua 2>/dev/null + +# Get libraries +echo "Downloading json libs..." +curl -sS -o dkjson.lua "https://raw.githubusercontent.com/LuaDist/dkjson/master/dkjson.lua" +curl -sS -o json4lua.lua "https://raw.githubusercontent.com/craigmj/json4lua/master/json/json.lua" +curl -sS -o jfjson.lua "http://regex.info/code/JSON.lua" + +echo "Done" -- cgit v1.1-26-g67d0