Run external script
This commit is contained in:
parent
62364fea54
commit
6395eb2f43
|
@ -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
|
|
||||||
|
|
8
thumbnails/generate_thumbnails.tup
Executable file
8
thumbnails/generate_thumbnails.tup
Executable 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
|
Loading…
Reference in a new issue