[MOD] STR #4116: install.sh uses bashism

Mark Morschh??user <[email protected]>
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

The line
function gzipcp {
should be replaced by
gzipcp () {
otherwise this breaks the installation process for e.g. /bin/sh = dash.
Patch is appended, installation also works for dash now.

Link: http://www.cups.org/str.php?L4116
Version: 1.5.3

_______________________________________________
cups-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/cups-bugs
install_sh_bashism.patch (text/plain, 300 B)
--- /usr/src/cups-1.5.3/install-sh	2012-03-01 01:05:55.000000000 +0100
+++ /mnt/ramdisk/portage/net-print/cups-1.5.3/work/cups-1.5.3/install-sh	2012-06-05 10:32:34.994750667 +0200
@@ -61,7 +61,7 @@
 dst=""
 dir_arg=""
 
-function gzipcp {
+gzipcp (){
 	# gzipcp from to
 	$gzipprog -9 <"$1" >"$2"
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.