source: aux-file-data.sh@ 39dca77

trunk xry111/mips64el
Last change on this file since 39dca77 was 872a378, checked in by Bruce Dubbs <bdubbs@…>, 4 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
Line 
1#!/bin/bash
2
3if [ $# -lt 1 ] ; then
4 echo "This script needs the location of the xml file to update"
5 exit 1
6fi
7
8FILE=$1
9
10./make-aux-files.sh
11
12# Bootscript data
13bootscripts=$(ls lfs-bootscripts*.xz)
14base=$(basename $bootscripts .tar.xz)
15bootsize=$(ls -l --block-size=1024 $bootscripts | cut -f5 -d" ")
16bootmd5=$(md5sum $bootscripts | cut -f1 -d" ")
17
18# Figure installed size of bootscripts
19TOPDIR=$(pwd)
20TMP_DIR=$(mktemp -d /tmp/lfsbootfiles.XXXXXX)
21pushd $TMP_DIR > /dev/null
22tar -xf $TOPDIR/$bootscripts
23bootinstallsize=$(du -sk $TMP_DIR | cut -f1)
24popd > /dev/null
25rm -rf $TMP_DIR
26
27sed -i -e s/BOOTSCRIPTS-SIZE/$bootsize/ \
28 -e s/BOOTSCRIPTS-INSTALL-KB/$bootinstallsize/ \
29 -e s/BOOTSCRIPTS-MD5SUM/$bootmd5/ $FILE
30
Note: See TracBrowser for help on using the repository browser.