process-scripts.sh 471 B

1234567891011121314151617
  1. #!/bin/bash
  2. # Boot scripts
  3. for s in systemd-units/lfs/lib/services/* \
  4. systemd-units/lfs/sbin/* \
  5. systemd-units/lfs/tmpfiles/* \
  6. systemd-units/lfs/units/*
  7. do
  8. script=$(basename $s)
  9. # Skip directories
  10. [ $script == 'network-devices' ] && continue
  11. sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
  12. -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
  13. $s > appendices/${script}.script
  14. done