summaryrefslogtreecommitdiff
path: root/auto/functions/livebuild-hacks
diff options
context:
space:
mode:
Diffstat (limited to 'auto/functions/livebuild-hacks')
-rw-r--r--auto/functions/livebuild-hacks17
1 files changed, 16 insertions, 1 deletions
diff --git a/auto/functions/livebuild-hacks b/auto/functions/livebuild-hacks
index 3fc2fac..bfe1ade 100644
--- a/auto/functions/livebuild-hacks
+++ b/auto/functions/livebuild-hacks
@@ -10,7 +10,22 @@ if [ "$current_script" = "binary_iso" ]; then
{
if [ -f config/binary_iso/isoimage.sort ]
then
- echo " -sort isoimage.sort"
+ case "${LB_PARENT_DISTRIBUTION}" in
+ squeeze) echo " -sort isoimage.sort";; # genisoimage
+ *) # xorriso - emulate the "-sort" argument of genisoimage:
+ set -x
+ echo " --boot-catalog-hide" $(
+ while read pattern weight
+ do
+ for file in $pattern
+ do
+ [ -e "$file" ] && echo --sort-weight "$(echo "100+0$weight" | bc)" "$file"
+ done
+ done < config/binary_iso/isoimage.sort | sed 's/ binary/ /')
+ set +x
+ ;;
+ # echo ' --boot-catalog-hide $(while read pattern weight; do for file in $pattern; do [ -e "$file" ] && echo --sort-weight "$(echo "100+0$weight" | bc)" "$(echo "$file"|sed 's/^binary//')"; done; done < isoimage.sort)';;
+ esac
case "${LB_BUILD_WITH_CHROOT}" in
true)