]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
examples: Make hello-rust pass the check.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Feb 2025 12:39:56 +0000 (13:39 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Feb 2025 13:30:08 +0000 (14:30 +0100)
* gettext-tools/examples/check-examples (func_check_dist): Ignore the
till-present 'target' directory in hello-rust.
(func_check_dist_vpath): Likewise.

gettext-tools/examples/check-examples

index df3e2188f65ded0d141e27a2a03d7d8e5819ee25..c0ff1db8795914dc2834408eaa006ddce538299e 100755 (executable)
@@ -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