]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Make man/po update-po more robust
authorSerge Hallyn <serge@hallyn.com>
Tue, 16 Jun 2026 17:35:03 +0000 (12:35 -0500)
committerSerge Hallyn <serge@hallyn.com>
Tue, 16 Jun 2026 21:15:14 +0000 (16:15 -0500)
There were some inconsistencies in how remove-potcdate was named.
It exists as po/remove-potcdate.sin.  The man/po tried to copy that
in, but it referred to it as remove-potcdate.sed.

Just copy it in as remove-potcdate.sed.  I think we can do better
than this, but for now this should make update-po more robust.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
man/po/Makefile.in

index bb2023c77a7da3e508d7a53a95c5c288342cbdd1..c89faf5f9688cad188fb72c7f005a3dfb02c7b3f 100644 (file)
@@ -46,7 +46,7 @@ include $(srcdir)/Makevars
 .SUFFIXES:
 .SUFFIXES: .po .sed .sin .nop .po-create .po-update
 
-remove-potcdate.sin: $(top_srcdir)/po/remove-potcdate.sin
+remove-potcdate.sed: $(top_srcdir)/po/remove-potcdate.sin
        cp $? $@
 
 .sin.sed:
@@ -86,7 +86,7 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
 # TODO: set MSGID_BUGS_ADDRESS, COPYRIGHT_HOLDER
-$(DOMAIN).pot-update: $(XMLFILES) $(srcdir)/XMLFILES
+$(DOMAIN).pot-update: $(XMLFILES) $(srcdir)/XMLFILES remove-potcdate.sed
        @set -ex; tmpdir=`mktemp -d`; \
        origdir=`pwd`; \
        cd $(top_srcdir)/man; \
@@ -161,7 +161,7 @@ check: all
 info dvi ps pdf html tags TAGS ctags CTAGS ID:
 
 mostlyclean:
-       rm -f remove-potcdate.sed remove-potcdate.sin
+       rm -f remove-potcdate.sed
        rm -f stamp-poT
        rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po