multilib
xry111/multilib
Last change
on this file since d2eb97b was 872a378, checked in by Bruce Dubbs <bdubbs@…>, 7 weeks ago |
Typos on comments.
These changes are all in comments that do not affect the books in any way.
|
-
Property mode
set to
100755
|
File size:
744 bytes
|
Rev | Line | |
---|
[1c48007] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[ba8848f] | 3 | if [ $# -lt 1 ] ; then
|
---|
[1c48007] | 4 | echo "This script needs the location of the xml file to update"
|
---|
| 5 | exit 1
|
---|
| 6 | fi
|
---|
| 7 |
|
---|
| 8 | FILE=$1
|
---|
| 9 |
|
---|
[924ab90] | 10 | ./make-aux-files.sh
|
---|
| 11 |
|
---|
[1c48007] | 12 | # Bootscript data
|
---|
[43194f0] | 13 | bootscripts=$(ls lfs-bootscripts*.xz)
|
---|
| 14 | base=$(basename $bootscripts .tar.xz)
|
---|
[8b9846f] | 15 | bootsize=$(ls -l --block-size=1024 $bootscripts | cut -f5 -d" ")
|
---|
[1c48007] | 16 | bootmd5=$(md5sum $bootscripts | cut -f1 -d" ")
|
---|
| 17 |
|
---|
[872a378] | 18 | # Figure installed size of bootscripts
|
---|
[1c48007] | 19 | TOPDIR=$(pwd)
|
---|
| 20 | TMP_DIR=$(mktemp -d /tmp/lfsbootfiles.XXXXXX)
|
---|
| 21 | pushd $TMP_DIR > /dev/null
|
---|
[ba8848f] | 22 | tar -xf $TOPDIR/$bootscripts
|
---|
[1c48007] | 23 | bootinstallsize=$(du -sk $TMP_DIR | cut -f1)
|
---|
| 24 | popd > /dev/null
|
---|
| 25 | rm -rf $TMP_DIR
|
---|
| 26 |
|
---|
| 27 | sed -i -e s/BOOTSCRIPTS-SIZE/$bootsize/ \
|
---|
| 28 | -e s/BOOTSCRIPTS-INSTALL-KB/$bootinstallsize/ \
|
---|
[f56f042] | 29 | -e s/BOOTSCRIPTS-MD5SUM/$bootmd5/ $FILE
|
---|
[1c48007] | 30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.