source: process-scripts.sh@ 57e2684d

multilib
Last change on this file since 57e2684d was 3781c69, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove eol spaces

  • Property mode set to 100644
File size: 822 bytes
RevLine 
[abcee47]1#!/bin/bash
[1c48007]2
[12bc336]3# Boot scripts
[166497f]4for 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]9do
[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/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
22 -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
[3781c69]23 $s > appendices/${script}.script
[1c48007]24done
Note: See TracBrowser for help on using the repository browser.