process-scripts.sh 830 B

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