From 037f2767609e03f2bf9b34eeb5ec635e5817bc12 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Fri, 1 May 2020 02:45:05 -0400 Subject: [PATCH] tup-ext: move makecmd here --- Tuprules.lua | 4 +--- util/tup-ext.lua | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Tuprules.lua b/Tuprules.lua index b2169b79..b5413c47 100644 --- a/Tuprules.lua +++ b/Tuprules.lua @@ -24,6 +24,4 @@ function compresspng(filename, opts) return cmds end -function makecmd(cmds) - return table.concat(flatten(cmds), " && ") -end + diff --git a/util/tup-ext.lua b/util/tup-ext.lua index 0f31de0d..9f04ed31 100644 --- a/util/tup-ext.lua +++ b/util/tup-ext.lua @@ -33,3 +33,7 @@ function symlink(input, output) output ) end + +function makecmd(cmds) + return table.concat(flatten(cmds), " && ") +end