source:
process-scripts.sh@
003dedd
Last change on this file since 003dedd was 3781c69, checked in by , 3 years ago | |
---|---|
|
|
File size: 822 bytes |
Rev | Line | |
---|---|---|
[abcee47] | 1 | #!/bin/bash |
[1c48007] | 2 | |
[12bc336] | 3 | # Boot scripts |
[166497f] | 4 | for s in bootscripts/lfs/init.d/* \ |
5 | bootscripts/lfs/sysconfig/* \ | |
[f874424] | 6 | bootscripts/lfs/lib/services/* \ |
[166497f] | 7 | bootscripts/lfs/sbin/* \ |
[b2b1e1a] | 8 | udev-lfs/*.rules |
[1c48007] | 9 | do |
[12bc336] | 10 | script=$(basename $s) |
[3781c69] | 11 | |
[1c48007] | 12 | # Skip directories |
[43c2ecf0] | 13 | [ $script == 'network-devices' ] && continue |
[f874424] | 14 | #[ $script == 'services' ] && continue |
[1c48007] | 15 | |
16 | # Disambiguate duplicate file names | |
[3781c69] | 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'; | |
20 | ||
[1c48007] | 21 | sed -e 's/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \ |
22 | -e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \ | |
[3781c69] | 23 | $s > appendices/${script}.script |
[1c48007] | 24 | done |
Note:
See TracBrowser
for help on using the repository browser.