diff options
| author | bwarsaw | 2001-05-18 21:32:34 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-05-18 21:32:34 +0000 |
| commit | 65173b4e3b7c212f21bf735084f93fb22c02cae5 (patch) | |
| tree | 6cc0211efe0e565b2c80af5d682044204989e327 | |
| parent | 3f3a3192ec4f65f49970790d9551cee9a8b2ef63 (diff) | |
| download | mailman-65173b4e3b7c212f21bf735084f93fb22c02cae5.tar.gz mailman-65173b4e3b7c212f21bf735084f93fb22c02cae5.tar.zst mailman-65173b4e3b7c212f21bf735084f93fb22c02cae5.zip | |
install: Teach this Makefile how to install language templates based
on the new layout.
| -rw-r--r-- | templates/Makefile.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/templates/Makefile.in b/templates/Makefile.in index d68410838..e63ad42cf 100644 --- a/templates/Makefile.in +++ b/templates/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -41,7 +41,7 @@ TEMPLATEDIR= $(prefix)/templates SHELL= /bin/sh -TEMPLATES= *.html *.txt +LANGUAGES= es fr hu en # Modes for directories and executables created by the install # process. Default to group-writable directories but @@ -57,10 +57,13 @@ INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE) all: install: - for f in $(TEMPLATES); \ + for d in $(LANGUAGES); \ do \ - mv -f $(TEMPLATEDIR)/$$f $(TEMPLATEDIR)/$$f.prev || $(TRUE); \ - $(INSTALL) -m $(FILEMODE) $$f $(TEMPLATEDIR); \ + ../mkinstalldirs $(TEMPLATEDIR)/$$d; \ + for f in $$d/*.{html,txt}; \ + do \ + $(INSTALL) -m $(FILEMODE) $$f $(TEMPLATEDIR)/$$d; \ + done; \ done finish: |
