summaryrefslogtreecommitdiffstats
path: root/kradio3/presets/update-makefile-dot-am.sh
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:23:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:23:26 +0000
commitae364d9bed0589bf1a22cd5f530c563462379e3e (patch)
treee32727e2664e7ce68d0d30270afa040320ae35a1 /kradio3/presets/update-makefile-dot-am.sh
downloadtderadio-ae364d9bed0589bf1a22cd5f530c563462379e3e.tar.gz
tderadio-ae364d9bed0589bf1a22cd5f530c563462379e3e.zip
Added old KDE3 version of kradio
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1094417 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/presets/update-makefile-dot-am.sh')
-rwxr-xr-xkradio3/presets/update-makefile-dot-am.sh63
1 files changed, 63 insertions, 0 deletions
diff --git a/kradio3/presets/update-makefile-dot-am.sh b/kradio3/presets/update-makefile-dot-am.sh
new file mode 100755
index 0000000..edf7421
--- /dev/null
+++ b/kradio3/presets/update-makefile-dot-am.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+THIS="$0"
+if [ ${THIS:0:1} != "/" ] ; then
+ if [ -e "$PWD/$THIS" ] ; then
+ THIS="$PWD/$THIS"
+ fi
+fi
+
+THISDIR=$(pwd | sed "s/^.*presets\/\?//" )
+OUT=Makefile.am
+HERE=$(pwd)
+
+echo -n "SUBDIRS =" > $OUT
+echo -e "Makefile\nMakefile.in\nmaintainers.txt\nmakemaintainers" > .cvsignore
+
+
+find -mindepth 1 -maxdepth 1 -type d | sed 's/^\.\///' | sed 's/\/$//' | grep -v CVS | \
+ while read line; do
+
+ echo -n " $line" >> $OUT
+
+ cd "$line"
+ "$THIS"
+ cd "$HERE"
+
+ done
+
+echo >> $OUT
+
+
+if [ -n "$THISDIR" ] ; then
+
+ echo -n "EXTRA_DIST =" >> $OUT
+
+
+ ls *.krp 2> /dev/null | while read line; do
+ echo -n " \"$line\"" >> $OUT
+ done
+
+ echo >> $OUT
+
+ echo -e "\ninstall-data-local:" >> $OUT
+ echo " \$(mkinstalldirs) \"\$(DESTDIR)\$(kde_datadir)/kradio/presets/$THISDIR/\"" >> $OUT
+
+ find -mindepth 1 -maxdepth 1 -name "*.krp" | sed 's/^\.\///' | \
+ while read line; do
+
+ echo " \$(INSTALL_DATA) \"\$(srcdir)/$line\" \"\$(DESTDIR)\$(kde_datadir)/kradio/presets/$THISDIR/$line\"" >> $OUT
+
+ done
+
+
+ echo -e "\n\nuninstall-local:" >> $OUT
+
+ find -mindepth 1 -maxdepth 1 -name "*.krp" | sed 's/^\.\///' | \
+ while read line; do
+
+ echo " -rm -f \"\$(DESTDIR)\$(kde_datadir)/kradio/presets/$THISDIR/$line\"" >> $OUT
+
+ done
+
+fi