From: Bastian Dehn Date: Tue, 22 Jul 2025 16:25:37 +0000 (+0200) Subject: add version number start and success X-Git-Tag: v1.1.0^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=87da63af4974b1825fb3a57006286d58df3670d4;p=scantopdf.git add version number start and success --- diff --git a/build-package b/build-package index e1234fd..b64d846 100755 --- a/build-package +++ b/build-package @@ -33,6 +33,7 @@ build_package() cat src/$executable \ | sed "/@scanbasic.sh@/r src/scanbasic.sh" \ | sed "/@scanbasic.sh@/d" \ + | sed "s/@VERSION@/$VERSION/" \ > $buildpath chmod 755 $buildpath done diff --git a/src/generate-trennblatt b/src/generate-trennblatt index 558c56e..ad9506b 100755 --- a/src/generate-trennblatt +++ b/src/generate-trennblatt @@ -12,7 +12,7 @@ errlog() main() { - echo "⭐ START: generate-trennblatt" + echo "⭐ START: generate-trennblatt @VERSION@" command -v qrencode > /dev/null \ || errlog "command qrencode not found" \ @@ -28,7 +28,7 @@ main() | rsvg-convert --format=pdf \ --output=trennblatt-qr.pdf - echo "✅ SUCCESS: generate-trennblatt" + echo "✅ SUCCESS: generate-trennblatt @VERSION@" } main diff --git a/src/scantopdf b/src/scantopdf index f748388..8ab843d 100755 --- a/src/scantopdf +++ b/src/scantopdf @@ -8,12 +8,12 @@ main() local output="$2" local keywords="$3" - echo "⭐ START: scantopdf" + echo "⭐ START: scantopdf @VERSION@" scantopdf "Color" "$pagecount" "$output" "$keywords"\ || return $? - echo "✅ SUCCESS: scantopdf" + echo "✅ SUCCESS: scantopdf @VERSION@" } main "$@" diff --git a/src/scantopdfbw b/src/scantopdfbw index e37b289..5679f38 100755 --- a/src/scantopdfbw +++ b/src/scantopdfbw @@ -8,12 +8,12 @@ main() local output="$2" local keywords="$3" - echo "⭐ START: scantopdfbw" + echo "⭐ START: scantopdfbw @VERSION@" scantopdf "BW" "$pagecount" "$output" "$keywords" \ || return $? - echo "✅ SUCCESS: scantopdfbw" + echo "✅ SUCCESS: scantopdfbw @VERSION@" } main "$@" diff --git a/src/scantopdfgray b/src/scantopdfgray index 2f2f7cf..060fa3b 100755 --- a/src/scantopdfgray +++ b/src/scantopdfgray @@ -8,12 +8,12 @@ main() local output="$2" local keywords="$3" - echo "⭐ START: scantopdfgray" + echo "⭐ START: scantopdfgray @VERSION@" scantopdf "Gray" "$pagecount" "$output" "$keywords" \ || return $? - echo "✅ SUCCESS: scantopdfgray" + echo "✅ SUCCESS: scantopdfgray @VERSION@" } main "$@"