From bcf18fb3474fea80e0d80aadcac1e2bb6dc1425d Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 16 May 2015 15:42:57 +0200 Subject: [PATCH] Also move lua to Makefile+versions-based Yay for deleting redundant files! --- Makefile | 5 ++++- lua/null.lua | 3 +++ lua/null.lua51 | 3 --- lua/null.lua52 | 3 --- lua/null.luajit | 3 --- 5 files changed, 7 insertions(+), 10 deletions(-) create mode 100755 lua/null.lua delete mode 100755 lua/null.lua51 delete mode 100755 lua/null.lua52 delete mode 100755 lua/null.luajit diff --git a/Makefile b/Makefile index 5c5eecb..a65e27f 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ PROGS = \ SCRIPTS = \ dash/null.dash bash/null.bash \ mksh/null.mksh mksh/null.mksh-static \ - lua/null.lua51 lua/null.lua52 lua/null.luajit \ perl/null.pl \ awk/null.mawk awk/null.gawk \ ruby/null.rb18 ruby/null.rb19 \ @@ -35,6 +34,9 @@ PYTHON_VARIANTS = "" -O -S PYTHON_INVOCS = $(foreach py,$(PYTHON_VERSIONS), \ $(foreach opt,$(PYTHON_VARIANTS), "$(py) $(opt) python/null.py")) +LUA_VERSIONS ?= lua5.1 lua5.2 luajit +LUA_INVOCS = $(LUA_VERSIONS:%="% lua/null.lua") + EXTRA_RUN = /bin/true ALL_TARGETS = \ @@ -42,6 +44,7 @@ ALL_TARGETS = \ $(SCRIPTS:%=./%) \ $(JAVA_INVOCS) \ $(PYTHON_INVOCS) \ + $(LUA_INVOCS) \ $(EXTRA_RUN) REPS ?= 100 diff --git a/lua/null.lua b/lua/null.lua new file mode 100755 index 0000000..057c16f --- /dev/null +++ b/lua/null.lua @@ -0,0 +1,3 @@ +-- this is not a shebang + +os.exit(0) diff --git a/lua/null.lua51 b/lua/null.lua51 deleted file mode 100755 index f4adad3..0000000 --- a/lua/null.lua51 +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/lua5.1 - -os.exit(0) \ No newline at end of file diff --git a/lua/null.lua52 b/lua/null.lua52 deleted file mode 100755 index 58b0872..0000000 --- a/lua/null.lua52 +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/lua5.2 - -os.exit(0) \ No newline at end of file diff --git a/lua/null.luajit b/lua/null.luajit deleted file mode 100755 index 9536b3e..0000000 --- a/lua/null.luajit +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/luajit-2.0.0-beta9 - -os.exit(0) \ No newline at end of file -- 2.39.5