Update to man-db-2.8.1
[linux_from_scratch.git] / process-scripts.sh
blob2b373a34df21ae343e62a2cea6ea06df59d33444
1 #!/bin/bash
3 # Boot scripts
4 for s in bootscripts/lfs/init.d/* \
5 bootscripts/lfs/sysconfig/* \
6 bootscripts/lfs/lib/services/* \
7 bootscripts/lfs/sbin/* \
8 udev-lfs/*.rules
9 do
10 script=$(basename $s)
12 # Skip directories
13 [ $script == 'network-devices' ] && continue
14 #[ $script == 'services' ] && continue
16 # Disambiguate duplicate file names
17 [ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit';
18 [ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit';
19 [ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry';
21 sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
22 -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
23 $s > appendices/${script}.script
24 done