From 8dd42c5bd72753717b01ade89f30aebb0a9c24a1 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Thu, 19 Apr 2007 04:31:49 +0200 Subject: [PATCH] conversion helper script for transform Makefile.am in plugins to non-recursive versions --- admin/conv.sh | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 admin/conv.sh diff --git a/admin/conv.sh b/admin/conv.sh new file mode 100755 index 00000000..e2bf36b3 --- /dev/null +++ b/admin/conv.sh @@ -0,0 +1,76 @@ +#!/bin/bash + +# +# This script was used to covert recursive Makefile.am's to included versions in the plugins dir +# it does only some stupid repeating tasks, manual editing is needed afterwards + +cd plugins + +cat Makefile.am | +while read file; do + # process commented out include lines + if test "${file:0:8}" = "#include"; then + makefileam=${file#*/*/} + pluginname=$(sed -e 's/noinst_LTLIBRARIES *= *\(.*\).la/\1/p;d' $makefileam) + if test ! "$pluginname"; then + pluginname=${makefileam%/*} + fi + + echo "Working in $makefileam for $pluginname" + + #cp $makefileam $makefileam.new + + echo "Editing" + ed $makefileam <