2008-07-16 20:12:53 +01:00
|
|
|
#!/bin/bash
|
2008-06-03 22:51:14 +01:00
|
|
|
|
2008-06-04 18:15:04 +01:00
|
|
|
# Boot scripts
|
2012-08-31 19:32:57 +01:00
|
|
|
for s in bootscripts/lfs/init.d/* \
|
|
|
|
bootscripts/lfs/sysconfig/* \
|
2011-09-19 04:31:46 +01:00
|
|
|
bootscripts/lfs/lib/services/* \
|
2012-08-31 19:32:57 +01:00
|
|
|
bootscripts/lfs/sbin/* \
|
2012-09-01 03:31:13 +01:00
|
|
|
udev-lfs/*.rules
|
2008-06-03 22:51:14 +01:00
|
|
|
do
|
2008-06-04 18:15:04 +01:00
|
|
|
script=$(basename $s)
|
2021-09-07 22:10:29 +01:00
|
|
|
|
2008-06-03 22:51:14 +01:00
|
|
|
# Skip directories
|
2011-05-31 04:36:33 +01:00
|
|
|
[ $script == 'network-devices' ] && continue
|
2011-09-19 04:31:46 +01:00
|
|
|
#[ $script == 'services' ] && continue
|
2008-06-03 22:51:14 +01:00
|
|
|
|
|
|
|
# Disambiguate duplicate file names
|
2021-09-07 22:10:29 +01:00
|
|
|
[ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit';
|
|
|
|
[ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit';
|
|
|
|
[ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry';
|
|
|
|
|
2008-06-03 22:51:14 +01:00
|
|
|
sed -e 's/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \
|
|
|
|
-e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \
|
2021-09-07 22:10:29 +01:00
|
|
|
$s > appendices/${script}.script
|
2008-06-03 22:51:14 +01:00
|
|
|
done
|