]> piware.de Git - bin.git/commitdiff
distrobox and scandoc adjustments for moving to papers
authorMartin Pitt <martin@piware.de>
Thu, 8 Oct 2026 10:41:37 +0000 (12:41 +0200)
committerMartin Pitt <martin@piware.de>
Thu, 8 Oct 2026 10:41:37 +0000 (12:41 +0200)
build-debian-distrobox
build-fedora-toolbox
scandoc

index 4588cda6c10bbd4e9b93c1a0fd0fab6818b2e700..64363895d502c4d7686cbe2af26b8c2ec3fa6d20 100755 (executable)
@@ -32,7 +32,7 @@ apt-get install -y --no-install-recommends simple-scan sane-utils pngquant image
 apt-get install -y --no-install-recommends autopkgtest qemu-system-x86 qemu-utils genisoimage uidmap
 
 # commands to forward to the host
-for cmd in podman buildah distrobox evince imv gh; do
+for cmd in podman buildah distrobox evince papers imv gh; do
     ln -fns /usr/bin/distrobox-host-exec /usr/local/bin/$cmd
 done
 '
index 085c2eb34a549a2326411fc819ff0e8d305ba68b..478e504af1317acc55a5feede7eb37bb2a275374 100755 (executable)
@@ -19,7 +19,7 @@ dnf install -y bash-completion man-db man-pages moreutils fd-find ripgrep gh git
 npm install -g @ansible/ansible-language-server pyright bash-language-server typescript-language-server vscode-langservers-extracted
 
 # commands to forward to the host
-for cmd in podman buildah imv skopeo distrobox nmcli eog evince flatpak; do
+for cmd in podman buildah imv skopeo distrobox nmcli eog evince papers flatpak; do
     ln -fns /usr/bin/distrobox-host-exec /usr/local/bin/$cmd
 done
 '
diff --git a/scandoc b/scandoc
index 8eb9ab254ac402428404398bf88e20e0bef997eb..f292c2f00d329ea0b2c978bf89747b721a2c466a 100755 (executable)
--- a/scandoc
+++ b/scandoc
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
 
 name="$1"
 [ -n "$name" ] || {
@@ -8,7 +8,7 @@ name="$1"
 name=$(readlink -f "$name")
 
 D=`mktemp -d`
-cd "$D"
+pushd "$D"
 echo "Output file directory: $D"
 PAGE=0
 while true; do
@@ -25,7 +25,7 @@ done
 # poppler-utils
 pdfunite page*.pdf "$name"
 
-cd $(dirname "$name")
+popd
 rm -rf "$D"
 
-evince "$name"
+papers "$name"