From 866582439ac2410e5ae98c3387718b7a28e04917 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 1 Feb 2018 15:07:35 -0500 Subject: Move the migration scripts and data to the attic Signed-off-by: Adam Jackson --- attic/merge-makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 attic/merge-makefile (limited to 'attic/merge-makefile') diff --git a/attic/merge-makefile b/attic/merge-makefile new file mode 100644 index 0000000..9bdba77 --- /dev/null +++ b/attic/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]; }' + -- cgit v1.2.3