From: Bruno Haible Date: Tue, 25 Feb 2025 12:39:56 +0000 (+0100) Subject: examples: Make hello-rust pass the check. X-Git-Tag: v0.24~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=662463ace583f78de59ad832e8e567335302f4b6;p=thirdparty%2Fgettext.git examples: Make hello-rust pass the check. * gettext-tools/examples/check-examples (func_check_dist): Ignore the till-present 'target' directory in hello-rust. (func_check_dist_vpath): Likewise. --- diff --git a/gettext-tools/examples/check-examples b/gettext-tools/examples/check-examples index df3e2188f..c0ff1db87 100755 --- a/gettext-tools/examples/check-examples +++ b/gettext-tools/examples/check-examples @@ -429,7 +429,7 @@ func_check_dist () rm -rf "$sample/autom4te.cache" if test -f "$sample/$sample-0.tar.gz"; then (cd "$sample" && tar xfz "$sample-0.tar.gz") - LC_ALL=C diff -r -q "$sample" "$sample/$sample-0" | grep -v "^Only in $sample: $sample-0$" | grep -v "^Only in $sample: $sample-0.tar.gz$" | grep -v "^Only in $sample: BUGS$" > "$sample.out" + LC_ALL=C diff -r -q "$sample" "$sample/$sample-0" | grep -v "^Only in $sample: $sample-0\$" | grep -v "^Only in $sample: $sample-0.tar.gz\$" | grep -v "^Only in $sample: BUGS\$" | grep -v "^Only in hello-rust: target\$" > "$sample.out" else echo "$sample-0.tar.gz was not created" > "$sample.out" fi @@ -518,7 +518,7 @@ func_check_dist_vpath () if test -f "$sample/build/$sample-0.tar.gz"; then (cd "$sample"/build && tar xfz "$sample-0.tar.gz") # TODO: Remove stamp-po workaround after next release. - LC_ALL=C diff -r -q "$sample" "$sample/build/$sample-0" | grep -v "^Only in $sample: build$" | grep -v "^Only in $sample: BUGS$" | { if test -f "$sample"/po/Makevars; then grep -v "^Only in $sample/build/$sample-0/po: stamp-po$"; else cat; fi; } > "$sample.out" + LC_ALL=C diff -r -q "$sample" "$sample/build/$sample-0" | grep -v "^Only in $sample: build\$" | grep -v "^Only in $sample: BUGS\$" | grep -v "^Only in hello-rust: target\$" | { if test -f "$sample"/po/Makevars; then grep -v "^Only in $sample/build/$sample-0/po: stamp-po\$"; else cat; fi; } > "$sample.out" else echo "$sample-0.tar.gz was not created" > "$sample.out" fi