Sort BLFS packages file by XML filename.
This commit is contained in:
parent
350c9cb972
commit
ee8dc261dc
2 changed files with 30 additions and 32 deletions
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
export outFile=aConfig.in # file for reading and writing to.
|
export outFile=aConfig.in # file for reading and writing to.
|
||||||
export inFile=packages.sorted # file for reading and writing to.
|
export inFile=packages # file for reading and writing to.
|
||||||
|
|
||||||
declare TRACKING_DIR=/var/lib/jhalfs/BLFS
|
declare TRACKING_DIR=/var/lib/jhalfs/BLFS
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@ get_pkg_ver() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sort packages -b --key=2 --field-separator=/ --output=packages.sorted
|
|
||||||
|
|
||||||
> $outFile
|
> $outFile
|
||||||
|
|
||||||
#---------------------#
|
#---------------------#
|
||||||
|
|
|
@ -34,10 +34,10 @@ kde-full $BLFS_XML
|
||||||
kde-koffice $BLFS_XML
|
kde-koffice $BLFS_XML
|
||||||
xorg7 $BLFS_XML
|
xorg7 $BLFS_XML
|
||||||
EOF
|
EOF
|
||||||
} > packages
|
} >> packages.tmp
|
||||||
|
|
||||||
# Dump packages list
|
# Dump packages list
|
||||||
sort packages.tmp >> packages
|
sort packages.tmp -b --key=2 --field-separator=/ --output=packages
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm packages.tmp
|
rm packages.tmp
|
||||||
|
|
Reference in a new issue