summaryrefslogtreecommitdiff
path: root/attic/merge-makefile
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-02-01 15:07:35 -0500
committerAdam Jackson <ajax@redhat.com>2018-02-01 15:07:35 -0500
commit866582439ac2410e5ae98c3387718b7a28e04917 (patch)
tree1b23e82ad57ad46edf7a227aff0fe544efcec0cc /attic/merge-makefile
parent193b75db8c1aa9d91d079901d7da98ec72810378 (diff)
Move the migration scripts and data to the attic
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'attic/merge-makefile')
-rw-r--r--attic/merge-makefile19
1 files changed, 19 insertions, 0 deletions
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]; }'
+