freebsd-ports/graphics/geeqie/files/patch-plugins-ufraw-geeqie-ufraw
Dmitry Marakasov 44c1aad592 - Don't use unsupported find option
Reported by:	Jochen Keil <jochen dot keil at gmail dot com>
2010-05-22 13:07:47 +00:00

35 lines
1.6 KiB
Text

--- plugins/ufraw/geeqie-ufraw.orig 2010-02-18 00:21:15.000000000 +0300
+++ plugins/ufraw/geeqie-ufraw 2010-05-22 17:06:21.000000000 +0400
@@ -37,7 +37,7 @@
basename=${input%.*}
dirname=${basename%/*}
- xmp=`find "$dirname" -maxdepth 1 -path "$basename.*" -regextype posix-egrep -iregex "$XMP_REGEX" -print | head -n 1`
+ xmp=`find -E "$dirname" -maxdepth 1 -path "$basename.*" -iregex "$XMP_REGEX" -print | head -n 1`
[ -f "$xmp" ] || return 1
output=`get_output_from_id "$idfile"`
@@ -75,7 +75,7 @@
rawfile=$1
basename=${rawfile%.*}
dirname=${basename%/*}
- outfiles=`find "$dirname" -maxdepth 1 -path "$basename.*" -regextype posix-egrep \( -iregex "$OUT_REGEX" -o -regex "$ID_REGEX" \) -print `
+ outfiles=`find -E "$dirname" -maxdepth 1 -path "$basename.*" \( -iregex "$OUT_REGEX" -o -regex "$ID_REGEX" \) -print `
[ -z "$outfiles" ] # return true if no possible output file exists
# raw+jpeg pair created by the camera is considered processed,
@@ -136,12 +136,12 @@
{
list=`mktemp /tmp/geeqie-ufraw-list.XXXXXXXXXX` || exit 1
- find "$@" -regextype posix-egrep -iregex "$RAW_REGEX" -print | while read rawfile ; do
+ find -E "$@" -iregex "$RAW_REGEX" -print | while read rawfile ; do
raw_file_not_processed "$rawfile" && echo "$rawfile"
done >>$list
#refresh output from changed id files
- find "$@" -regextype posix-egrep -regex "$ID_REGEX" -print | while read idfile ; do
+ find -E "$@" -regex "$ID_REGEX" -print | while read idfile ; do
id_file_changed "$idfile" && echo "$idfile"
done >>$list