aboutsummaryrefslogtreecommitdiffstats
path: root/process-scripts.sh
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2008-06-03 21:51:14 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2008-06-03 21:51:14 +0000
commit1c4800743d22d675ccfa48364d8aa558e8b7407c (patch)
treeca4254cbe5dd5adb0ed8af1f87c26bc569403164 /process-scripts.sh
parent9faa3e27afb932894ace74854fbb76631022446b (diff)
Moved bootscripts and udev-config to BOOK
Updated Makefile to automatically generate bootscript and udev-config tarballs Updated licesnse to be the same as BLFS git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8548 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'process-scripts.sh')
-rw-r--r--process-scripts.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/process-scripts.sh b/process-scripts.sh
new file mode 100644
index 000000000..30fdd7e00
--- /dev/null
+++ b/process-scripts.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+for s in bootscripts/lfs/init.d/* \
+ bootscripts/lfs/sysconfig/* \
+ bootscripts/lfs/sysconfig/network-devices/* \
+ bootscripts/lfs/sysconfig/network-devices/services/*
+do
+ script=`basename $s`
+
+ # Skip directories
+ [ $script == 'network-devices' ] && continue
+ [ $script == 'services' ] && continue
+
+ # Disambiguate duplicate file names
+ [ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit';
+ [ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit';
+
+ sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
+ -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
+ $s > appendices/${script}.script
+done
+