bin: verbosify few scripts

This commit is contained in:
xeruf 2023-04-21 09:27:19 +02:00
parent 284f789aa2
commit e7b634a002
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh -ex
# Set exec flag on all files that should be executable
find -maxdepth 4 -name "*.sh" "$@" -exec chmod +x {} +
find -maxdepth 4 -name "*.sh" "$@" -exec chmod -v +x {} +

View File

@ -5,6 +5,11 @@
# and shows progress indications for some operations
# optdepends: rewrite(part of my dotfiles, for unzip line rewriting) 7z p7zip unzip
# TODO auto-delete archive, auto-extract in current dir, trim .tar.gz fully
if test $# -eq 0
then ex *.zip
exit
fi
for arg do
case $arg in
(-d) del=$(expr ${del:-0} + 1);;

View File

@ -23,6 +23,7 @@ export TEXMF=""
pdfjam $quiet "$signature" --outfile "$sig" --papersize "{595pt, 842pt}" --noautoscale true \
--offset "${h}pt ${v}pt" --scale "${4:-1}"
pdfjam $quiet "$1" last "$sig" --outfile "$tmp_signed" --delta "0 -842pt" --nup "1x2" --fitpaper true
# TODO consider pdftk stamp
timg "$tmp_signed"