source: process-scripts.sh@ 53ff0f9

6.4
Last change on this file since 53ff0f9 was abcee47, checked in by Bruce Dubbs <bdubbs@…>, 16 years ago

Change book build scripts to specify bash, not sh

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8552 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[abcee47]1#!/bin/bash
[1c48007]2
[12bc336]3# Boot scripts
[1c48007]4for s in bootscripts/lfs/init.d/* \
5 bootscripts/lfs/sysconfig/* \
6 bootscripts/lfs/sysconfig/network-devices/* \
7 bootscripts/lfs/sysconfig/network-devices/services/*
8do
[12bc336]9 script=$(basename $s)
[1c48007]10
11 # Skip directories
12 [ $script == 'network-devices' ] && continue
13 [ $script == 'services' ] && continue
14
15 # Disambiguate duplicate file names
16 [ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit';
17 [ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit';
18
19 sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
20 -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
21 $s > appendices/${script}.script
22done
23
[12bc336]24# Udev rules
25for s in udev-config/*.rules
26do
27 script=$(basename $s)
28
29 sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
30 -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
31 $s > appendices/${script}.script
32done
Note: See TracBrowser for help on using the repository browser.