source: trunk/third/gettext/djgpp/Makefile.maint @ 18200

Revision 18200, 1.7 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18199, which included commits to RCS files with non-trunk default branches.
RevLine 
[16930]1# Maintainer's Makefile                                         -*-Makefile-*-
2
3top_srcdir = ..
4srcdir = .
5
6SHELL = /bin/sh
7
8all: README fnchange.lst config.sed
9
10config.sed: config.in fnchange.in
11        sed \
12            -e '/plural-[1-9]\+/ d' \
13            -e 's|\.h\.in|\\\\\\\\.h\\\\\\\\.in|' \
14            -e 's|\.in\.in|\\\\\\\\.in\\\\\\\\.in|' \
[18199]15            -e 's|\.sh\.in|\\\\\\\\.sh\\\\\\\\.in|' \
16            -e 's|^.*/\([A-Za-z0-9\\._+-]\+\)[ ]\+|  s,\1,|' \
17            -e '/\/tests\// !s|@V@.*/||;s|@V@/tests/||' \
[16930]18            -e 's|$$|,g\\\\\\|' \
19            -e 's|^#.*$$|/@append_list_of_renamed_files@/ c\\|' \
20          $(srcdir)/fnchange.in > t-script.sed
21        sed '$$ s|\\||' t-script.sed > script.sed
22        sed -f script.sed $(srcdir)/config.in > t-$@
23        mv t-$@ $@
24        rm -f t-script.sed script.sed
25
26fnchange.lst: fnchange.in $(top_srcdir)/configure.in
27        PACKAGE=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE(\([^,)]*\),.*$$/\1/'`; \
28        VERSION=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE([^,)]*, *\([^,)]*\).*$$/\1/'`; \
29        sed \
30            -e '/^#/d' \
31            -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
32          $(srcdir)/fnchange.in > t-$@
33        mv t-$@ $@
34
35README: README.in $(top_srcdir)/configure.in
36        PACKAGE=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE(\([^,)]*\),.*$$/\1/'`; \
37        VERSION=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE([^,)]*, *\([^,)]*\).*$$/\1/'`; \
38        packageversion=`echo "$${VERSION}" | sed 's/\..*\.//'`; \
39        treeversion=`echo "$${VERSION}" | sed 's/\.//'`; \
40        sed \
41            -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
42            -e "s/@VER@/$${VERSION}/g" \
43            -e "s/@packageversion@/$$packageversion/g" \
44            -e "s/@treeversion@/$$treeversion/g" \
45          $(srcdir)/README.in > t-$@
46        mv t-$@ $@
Note: See TracBrowser for help on using the repository browser.