diff options
author | Keith Packard <keithp@keithp.com> | 2017-12-13 15:48:10 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-12-13 15:48:10 -0800 |
commit | 80ceb11c62e964eac64abdb9eb384f14280e1800 (patch) | |
tree | ed451de9c9fa14d30131def9d04c0433d076d53f /merge-makefile | |
parent | fa8997ab2598ee84d2cf5805740408e50d2ca57b (diff) |
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'merge-makefile')
-rw-r--r-- | merge-makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/merge-makefile b/merge-makefile new file mode 100644 index 0000000..9bdba77 --- /dev/null +++ b/merge-makefile @@ -0,0 +1,19 @@ +#!/bin/sh + +for i in `cat protos`; do + sed -e "s/^pkgconfig/${i}pkgconfig/" \ + -e "s/EXTRA_DIST/${i}_EXTRA_DIST/" \ + -e 's/#.*$//' \ + -e '/MAINTAINERCLEANFILES/d' \ + -e '/PHONY/d' \ + -e '/SUBDIRS=specs/d' \ + -e '/ChangeLog/d' \ + -e '/CHANGELOG/d' \ + -e '/INSTALL/d' \ + -e '/dist-hook/d' \ + $i/Makefile.am +done | cat -s | + awk '/dist_doc_DATA/ { doc[ndoc++] = $3; } + { print $0 } + END { print "SUBDIRS=specs"; print; print "dist_doc_DATA = \\"; for (i in doc) printf "\t%s \\\n", doc[i]; }' + |