Run external script

This commit is contained in:
Fabien Freling 2019-10-30 14:15:28 +01:00
parent 62364fea54
commit 6395eb2f43
2 changed files with 9 additions and 7 deletions

View file

@ -1,7 +1 @@
: asset.raw |> !tup_preserve |> run ./generate_thumbnails.tup
: asset.raw |> cp %f %o |> asset.thumbnail
# tup error: Unable to create output file 'asset.thumbnail' because it is
# already owned by command 16.
#: foreach *.raw |> !tup_preserve |>
#: foreach *.raw |> cp %f %o |> asset.thumbnail

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
for i in *.raw; do
echo ": $i |> !tup_preserve |>"
echo ": $i |> cp %f %o |> %B.thumbnail"
done