source: aux-file-data.sh@ 2ab0d9c

ml-11.0 multilib
Last change on this file since 2ab0d9c was b2c61c6, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

MultiLib: Merge changes from trunk

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11630 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100755
File size: 743 bytes
RevLine 
[1c48007]1#!/bin/bash
2
[ba8848f]3if [ $# -lt 1 ] ; then
[1c48007]4 echo "This script needs the location of the xml file to update"
5 exit 1
6fi
7
8FILE=$1
9
[924ab90]10./make-aux-files.sh
11
[1c48007]12# Bootscript data
[b2c61c6]13bootscripts=$(ls lfs-bootscripts*.xz)
14base=$(basename $bootscripts .tar.xz)
[8b9846f]15bootsize=$(ls -l --block-size=1024 $bootscripts | cut -f5 -d" ")
[1c48007]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
[ba8848f]22tar -xf $TOPDIR/$bootscripts
[1c48007]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/ \
[f56f042]29 -e s/BOOTSCRIPTS-MD5SUM/$bootmd5/ $FILE
[1c48007]30
Note: See TracBrowser for help on using the repository browser.