From ad67e6a215ff1b5a2cc648aa385277bee9a200a6 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Wed, 30 Oct 2019 23:08:20 +0100 Subject: [PATCH] Exhibit preserve bug --- thumbnails/Tupfile | 8 +++++++- thumbnails/preserve_bug.sh | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 thumbnails/preserve_bug.sh diff --git a/thumbnails/Tupfile b/thumbnails/Tupfile index 4aa8970..c866757 100644 --- a/thumbnails/Tupfile +++ b/thumbnails/Tupfile @@ -1 +1,7 @@ -run ./generate_thumbnails.tup +: asset.raw |> !tup_preserve |> +: asset.raw |> cp %f %o |> %B.thumbnail + +#: foreach *.raw |> !tup_preserve |> +#: foreach *.raw |> cp %f %o |> %B.thumbnail + +#run ./generate_thumbnails.tup diff --git a/thumbnails/preserve_bug.sh b/thumbnails/preserve_bug.sh new file mode 100755 index 0000000..c43c389 --- /dev/null +++ b/thumbnails/preserve_bug.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +tup # everything builds fine +echo "" +echo "Success" +echo "" + +touch Tupfile + +tup # error +echo "" +echo "Fail" +echo "" + +# tup error: Command ID 15 lists this file as both an input and an output: +# build-default/asset.raw