| 12345678910111213141516171819202122232425262728293031323334353637383940 | #!/bin/bashif [ $# -lt 1 ] ; then   echo "This script needs the location of the xml file to update"  exit 1fiFILE=$1./make-aux-files.sh# Bootscript databootscripts=$(ls lfs-bootscripts*.bz2)base=$(basename $bootscripts .tar.bz2)bootsize=$(ls -lk $bootscripts | cut -f5 -d" ")bootmd5=$(md5sum $bootscripts | cut -f1 -d" ")# Figure intalled size of bootscriptsTOPDIR=$(pwd)TMP_DIR=$(mktemp -d /tmp/lfsbootfiles.XXXXXX)pushd $TMP_DIR > /dev/nulltar -xf $TOPDIR/$bootscripts bootinstallsize=$(du -sk $TMP_DIR | cut -f1)popd > /dev/nullrm -rf $TMP_DIRsed -i -e s/BOOTSCRIPTS-SIZE/$bootsize/              \       -e s/BOOTSCRIPTS-INSTALL-KB/$bootinstallsize/ \       -e s/BOOTSCRIPTS-MD5SUM/$bootmd5/ $FILE############# udev configuration tarball dataudevconfig=$(ls udev-config*.bz2)udevsize=$(ls -lk $udevconfig | cut -f5 -d" ")udevmd5=$(md5sum $udevconfig | cut -f1 -d" ")sed -i -e s/UDEV-SIZE/$udevsize/ \       -e s/UDEV-MD5SUM/$udevmd5/ $FILE
 |