Subversion Repositories svn LFS-FR

Rev

Rev 1346 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/bin/bash

# Boot scripts
for s in bootscripts/hlfs/init.d/*                    \
         bootscripts/hlfs/sysconfig/*                 \
         bootscripts/hlfs/sysconfig/network-devices/* \
         bootscripts/hlfs/sysconfig/network-devices/services/*
do
  script=$(basename $s)
 
  # Skip directories
  [ $script == 'network-devices' ] && continue
  [ $script == 'services'        ] && continue

  # Disambiguate duplicate file names
  [ $s == 'bootscripts/hlfs/sysconfig/rc'      ] && script='rc-sysinit';
  [ $s == 'bootscripts/hlfs/sysconfig/modules' ] && script='modules-sysinit';
 
  sed  -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g'   -e 's/>/\&gt\;/g' \
       -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/    /g'  \
       $s > appendices/${script}.script
done

# Udev rules
for s in udev-config/*.rules
do
  script=$(basename $s)

  sed  -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g'   -e 's/>/\&gt\;/g' \
       -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/    /g'  \
       $s > appendices/${script}.script
done