# HG changeset patch
# User Pascal Bellard
# Date 1482064585 -3600
# Node ID 67852828c7abeed559435968237ec79c1c736bad
# Parent a08edea1798f1abb9be4edfa5849019741105fd7
floppies/mkfdrolling.sh: add loram
diff -r a08edea1798f -r 67852828c7ab mirror/floppies/mkfdrolling.sh
--- a/mirror/floppies/mkfdrolling.sh Tue Oct 04 21:56:45 2016 +0100
+++ b/mirror/floppies/mkfdrolling.sh Sun Dec 18 13:36:25 2016 +0100
@@ -1,8 +1,10 @@
#!/bin/sh
-cd $(dirname $0)/rolling
-ISO=../../iso/rolling/slitaz-rolling.iso
-if [ ! -s fd001.img ] || [ $ISO -nt fd001.img ]; then
+WD=$(cd $(dirname $0); pwd)
+while read name iso; do
+ cd $WD/$name
+ ISO=../../$iso
+ if [ ! -s fd001.img ] || [ $ISO -nt fd001.img ]; then
rm -f fd* 2> /dev/null
taziso $ISO floppyset > /dev/null
md5sum fd* > md5sum
@@ -10,7 +12,8 @@
mkdir $mnt
mount -o loop,ro $ISO $mnt
mtime=$(stat -c %y $mnt/md5sum | sed 's/ .*//')
- set -- $(sed '/ifmem/!d;s/.*ifmem //' $mnt/boot/isolinux/isolinux.cfg)
+ set -- $(sed '/ifmem/!d;s/.*ifmem //' $mnt/boot/isolinux/isolinux.cfg \
+ | sed 's|^|echo |;s|\([0-9][0-9]*\) |$((\1/1024))M |g' | sh)
umount $mnt
rmdir $mnt
echo "Built on $mtime, needs up to ${1}b of RAM" > title
@@ -55,6 +58,9 @@
You can bypass this by using B to boot without loading extra floppies.
EOT
cd ..
- ./mkindex.sh rolling > index-rolling.html
-fi
-
+ ./mkindex.sh $name > index-$name.html
+ fi
+done <