freebsd-ports/graphics/netpbm/files/patch-ppmquantall.csh
Dirk Meyer ae002a252a - convert from bash to sh
PR:		185189
Submitted by:	Matthieu Volat

- bugfix for filenames with spaces.
2013-12-30 11:51:07 +00:00

13 lines
492 B
Tcsh

--- editor/ppmquantall.csh.orig 2006-08-19 05:12:28.000000000 +0200
+++ editor/ppmquantall.csh 2013-12-25 21:56:17.183814873 +0100
@@ -30,8 +30,8 @@
set widths=()
set heights=()
foreach i ( $files )
- set widths=( $widths `sed '1d; s/ .*//; 2q' $i` )
- set heights=( $heights `sed '1d; s/.* //; 2q' $i` )
+ set widths=( $widths `grep -v '^#' "$i" | sed '1d; s/ .*//; 2q'` )
+ set heights=( $heights `grep -v '^#' "$i" | sed '1d; s/.* //; 2q'` )
end
set all=/tmp/pqa.all.$$