diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | cups-programme.sh | 6 |
4 files changed, 11 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = cups-print-to-programme pkgdesc = Virtual printer for cups which prints to a file and opens that with a programme the user can choose in the settings. For example, print to gimp. pkgver = 0.2 - pkgrel = 1 + pkgrel = 2 url = http://felics.kettenbruch.de/software/cups-print-to-programme/ install = cups-programme.install arch = any @@ -28,9 +28,9 @@ pkgbase = cups-print-to-programme source = TODO.txt source = GPL3.txt source = cups-programme.install - sha256sums = bd63ca00ad98880f529c3f53594c0dca0d683bb40a111b1356fa7d19bad04363 + sha256sums = 2254436c330f7cbaf90dc4f3572ae670893520ae7ae9af48dcb5be28ae7cb89b sha256sums = f583ed8969deef9e890b20c475bc24fd4eed8ef3c3a51544f9183fcc69d38c5c - sha256sums = a8f2e7e2b796d19b21b91c5224274397eb35a39616d4caf7ed612d19b32a9768 + sha256sums = 9dab3a743d524aa3c6992501205ee7be4baaff3f73534ef878162e4e603bc9ca sha256sums = 83b54a69c67d39d03b1b02a4da1c2bccb45c459f239809568221844c2e7500a7 sha256sums = 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 sha256sums = 0ee996783ae6848cf3c522de135646cb4b19670a48d6f1bf387b5b304f5506ad @@ -4,7 +4,7 @@ _pkgname=cups-print-to-programme pkgname="${_pkgname}" pkgver=0.2 -pkgrel=1 +pkgrel=2 pkgdesc="Virtual printer for cups which prints to a file and opens that with a programme the user can choose in the settings. For example, print to gimp." arch=('any') depends=( @@ -38,9 +38,9 @@ optdepends=( ) provides=("${_pkgname}-doc=${pkgver}") backup=('etc/cups/cups-programme.conf') -sha256sums=('bd63ca00ad98880f529c3f53594c0dca0d683bb40a111b1356fa7d19bad04363' +sha256sums=('2254436c330f7cbaf90dc4f3572ae670893520ae7ae9af48dcb5be28ae7cb89b' 'f583ed8969deef9e890b20c475bc24fd4eed8ef3c3a51544f9183fcc69d38c5c' - 'a8f2e7e2b796d19b21b91c5224274397eb35a39616d4caf7ed612d19b32a9768' + '9dab3a743d524aa3c6992501205ee7be4baaff3f73534ef878162e4e603bc9ca' '83b54a69c67d39d03b1b02a4da1c2bccb45c459f239809568221844c2e7500a7' '3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986' '0ee996783ae6848cf3c522de135646cb4b19670a48d6f1bf387b5b304f5506ad') diff --git a/README.md b/README.md index 0c531bffd0dc..e72250035821 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,8 @@ where: + 'gif' (GIF; uses ImageMagick or GraphicsMagick), + 'jpg' (JPEG; uses ImageMagick or GraphicsMagick), + 'tif' (TIFF; uses ImageMagick or GraphicsMagick), + - `<variable>=<value>` -- assigns `<value>` to the environment + variable `<variable>` and exports `<variable>`. - anything else will be passed as positional arguments to the executable. * On `<path-to-executable>` and all the options (except `t=<filetype>`), diff --git a/cups-programme.sh b/cups-programme.sh index 48a55645be20..acf0e52dc813 100755 --- a/cups-programme.sh +++ b/cups-programme.sh @@ -212,7 +212,7 @@ log_local "" # # $DEVICE_URI format: # -# ${backend_name}:<command>?u=<user>&g=<group>&D=<display>&t=<filetype>&<argument>&<argument>... +# ${backend_name}:<command>?u=<user>&g=<group>&D=<display>&t=<filetype>&<variable>=<value>&<variable>=<value>&<argument>&<argument>... # # All arguments, including the 'u=<user>', 'g=<group>', 'D=<display>' # and 't=<filetype>, are optional. @@ -319,8 +319,8 @@ for _arg in "${cmd_args[@]}"; do done # Exporting environment variables after replacements. for _env in "${env_vars[@]}"; do - _var="$(echo "${_env%%=*}" | replace_strings)") - _val="$(echo "${_env#?*=}" | replace_strings)") + _var="$(echo "${_env%%=*}" | replace_strings)" + _val="$(echo "${_env#?*=}" | replace_strings)" log_local "Exporting environment variable '${_var}=${_val}'." declare -g "${_var}=${_val}" export "${_var}" |