source: aux-file-data.sh@ 924ab90

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 924ab90 was 924ab90, checked in by Matthew Burgess <matthew@…>, 12 years ago

Allow aux-file-data.sh to be run successfully from the command line, and rename validxml target to validate. Thanks to Pierre Labastie for the report.

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

  • Property mode set to 100755
File size: 982 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*.bz2)
14base=$(basename $bootscripts .tar.bz2)
15bootsize=$(ls -lk $bootscripts | cut -f5 -d" ")
16bootmd5=$(md5sum $bootscripts | cut -f1 -d" ")
17
18# Figure intalled 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
31############
32
33# udev configuration tarball data
34udevconfig=$(ls udev-config*.bz2)
35udevsize=$(ls -lk $udevconfig | cut -f5 -d" ")
36udevmd5=$(md5sum $udevconfig | cut -f1 -d" ")
37
38sed -i -e s/UDEV-SIZE/$udevsize/ \
39 -e s/UDEV-MD5SUM/$udevmd5/ $FILE
40
Note: See TracBrowser for help on using the repository browser.