pkg(retina-1.2.0): added retina 1.2.0

This commit is contained in:
Hydrazer 2021-11-27 03:59:56 -07:00
parent 507233400d
commit 6cee1e8c34
6 changed files with 48 additions and 0 deletions

15
packages/retina/1.2.0/run vendored Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# retina doesn't take interactive stdin and doesn't take args either
# save the file for later
file="$1"
# remove file from $@
shift
# join arguments on newline
stdin=`printf "%s\n" "$@"`
# pass stdin into Retina command with file as argument
echo "$stdin" | "$RETINA_PATH"/Retina "$file"