diff options
author | EuAndreh <eu@euandre.org> | 2025-08-17 04:11:25 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-08-17 04:11:25 -0300 |
commit | b48033535688db45b4d96b31341c1334a68c0ac6 (patch) | |
tree | 64817f9b3b3eec439458201b7012e09da8b95465 | |
parent | etc/guix/home.scm: Disable and mark "frama-c" as broken (diff) | |
download | dotfiles-b48033535688db45b4d96b31341c1334a68c0ac6.tar.gz dotfiles-b48033535688db45b4d96b31341c1334a68c0ac6.tar.xz |
bin/print: Separate rule for text from other file types
-rwxr-xr-x | bin/print | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -57,8 +57,11 @@ main() { ps2pdf "$FILE" "$NEWDIR"/in.pdf elif file -b "$FILE" | grep -q PDF; then cp "$FILE" "$NEWDIR"/in.pdf - else + elif file -b "$FILE" | grep -q text; then enscript -o- "$FILE" | ps2pdf - "$NEWDIR"/in.pdf + else + lp $OPTS "$FILE" + return fi cd "$NEWDIR" |