SF.net SVN: morphix: [2309] trunk/morph-scripts
[email protected] Sat, 17 Jun 2006 08:15:31 -0700
| Newsgroups | gmane.linux.morphix.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 2309
Author: bmsleight
Date: 2006-06-17 08:15:24 -0700 (Sat, 17 Jun 2006)
ViewCVS: http://svn.sourceforge.net/morphix/?rev=2309&view=rev
Log Message:
-----------
Morphix-rebrand - 1st Draft complete just requires packaging. make-iso - added option of label (Is this OK?)
Modified Paths:
--------------
trunk/morph-scripts/makeiso.sh
trunk/morph-scripts/morphix-rebrand.sh
Modified: trunk/morph-scripts/makeiso.sh
===================================================================
--- trunk/morph-scripts/makeiso.sh 2006-06-13 01:42:59 UTC (rev 2308)
+++ trunk/morph-scripts/makeiso.sh 2006-06-17 15:15:24 UTC (rev 2309)
@@ -2,9 +2,10 @@
SRC="$1"
DEST="$2"
+LABEL="$3"
if [ -z "$SRC" -o -z "$DEST" ]; then
- echo "Usage: $0 sourcedirectory destination.iso"
+ echo "Usage: $0 sourcedirectory destination.iso [Label]"
echo
echo "This script generates internal md5sum's for the sourcedirectory,"
echo "and then generates a bootable live CD from the directory"
@@ -12,13 +13,19 @@
exit
fi
+if [ -z "$LABEL" ]; then
+ LABEL="Morphix LiveCD"
+else
+ LABEL="$LABEL LiveCD"
+fi
+
find $SRC/ -type f -print0 | xargs -0 md5sum > $SRC/md5sums
if [ -e "$SRC/base/boot.img" ]; then
- mkisofs -pad -l -r -J -v -V "Morphix LiveCD" -b base/boot.img -c base/boot.cat -hide -rr -moved -o $DEST $SRC
+ mkisofs -pad -l -r -J -v -V "$LABEL" -b base/boot.img -c base/boot.cat -hide -rr -moved -o $DEST $SRC
elif [ -e "$SRC/boot/grub/iso9660_stage1_5" ]; then
- mkisofs -pad -l -r -J -v -V "Morphix LiveCD" -b boot/grub/iso9660_stage1_5 -c base/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -hide -rr -moved -o $DEST $SRC
+ mkisofs -pad -l -r -J -v -V "$LABEL" -b boot/grub/iso9660_stage1_5 -c base/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -hide -rr -moved -o $DEST $SRC
elif [ -e "%SRC/base/isolinux.bin" ]; then
- mkisofs -pad -l -r -J -v -V "Morphix LiveCD" -b base/isolinux/isolinux.bin -c base/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -hide -rr -moved -o $DEST $SRC
+ mkisofs -pad -l -r -J -v -V "$LABEL" -b base/isolinux/isolinux.bin -c base/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -hide -rr -moved -o $DEST $SRC
else
echo "Error: unable to find bootloader in $SRC. Either update this script, or make sure you have the right directory as src"
fi
Modified: trunk/morph-scripts/morphix-rebrand.sh
===================================================================
--- trunk/morph-scripts/morphix-rebrand.sh 2006-06-13 01:42:59 UTC (rev 2308)
+++ trunk/morph-scripts/morphix-rebrand.sh 2006-06-17 15:15:24 UTC (rev 2309)
@@ -80,18 +80,26 @@
kernel_image ()
{
-echo "Kernel Image - to do"
+echo "Kernel Image - remains unchanged - to do"
}
bootsplash ()
{
-echo "Boot Splash (Grub background) - to do"
+#/usr/share/morphix-rebrand/morphix-iso-grubtheme_0.1-4.tar.gz - to package
+tar zxvf /usr/share/morphix-rebrand/morphix-iso-grubtheme_0.1-4.tar.gz -C $TMP_DIR 1>/dev/null 2>&1
+convert $GRAPHIC -resize 640x503! $TMP_DIR/SMALL_GRAPHIC.png
+convert -size 434x321 gradient:blue-steelblue $TMP_DIR/grubmenu.png
+convert -page 640x503+172+34 $TMP_DIR/grubmenu.png -page 640x503+0+0 $TMP_DIR/SMALL_GRAPHIC.png -background none -compose DstOver -flatten $TMP_DIR/grub.png
+convert $TMP_DIR/grub.png -resize 640x503! -colors 14 -depth 8 $TMP_DIR/gfxboot-grub-0.1/background.pcx
+cp $TMP_DIR/gfxboot-grub-0.1/background.pcx /tmp/background.pcx
+cd $TMP_DIR/gfxboot-grub-0.1/ && make >/dev/null 2>%1
+cp $TMP_DIR/gfxboot-grub-0.1/boot/message $NEW_IMAGE_DIR/boot/grub
}
linuxrc ()
{
cp $NEW_IMAGE_DIR/boot/miniroot.gz $TMP_DIR/
-cd $TMP_DIR/ && gunzip miniroot.gz
+gunzip $TMP_DIR/miniroot.gz
mkdir $TMP_DIR/lxrc
sync
mount $TMP_DIR/miniroot $TMP_DIR/lxrc -o loop -t ext2
@@ -103,21 +111,29 @@
mv $TMP_FILE $TMP_DIR/lxrc/linuxrc
chmod a+x $TMP_DIR/lxrc/linuxrc
ln -s /${OLD_TITLE}CD $TMP_DIR/lxrc/${TITLE}CD
+convert $GRAPHIC -quality 75 -resize 1024x768 -size 1024x768 xc:white +swap -gravity center -composite $TMP_DIR/silent-1024x768.jpg
+convert $TMP_DIR/silent-1024x768.jpg -modulate 5,10,10 $TMP_DIR/bootsplash-1024x768.jpg
+cp $TMP_DIR/silent-1024x768.jpg $TMP_DIR/lxrc/bootsplash/images/silent-1024x768.jpg
+cp $TMP_DIR/silent-1024x768.jpg $TMP_DIR/lxrc/bootsplash/images/silent2-1024x768.jpg
+cp $TMP_DIR/silent-1024x768.jpg $TMP_DIR/lxrc/bootsplash/images/silent3-1024x768.jpg
+cp $TMP_DIR/silent-1024x768.jpg $TMP_DIR/lxrc/bootsplash/images/silent4-1024x768.jpg
+cp $TMP_DIR/silent-1024x768.jpg $TMP_DIR/lxrc/bootsplash/images/silent5-1024x768.jpg
+cp $TMP_DIR/bootsplash-1024x768.jpg $TMP_DIR/lxrc/bootsplash/images/bootsplash-1024x768.jpg
sync
umount $TMP_DIR/miniroot
-cd $TMP_DIR/ && gzip miniroot
+gzip $TMP_DIR/miniroot
cp $TMP_DIR/miniroot.gz $NEW_IMAGE_DIR/boot/
-echo "Images stored in linuxrc (bootsplas) - to do"
}
xbackground ()
{
-echo "Xbackground - to do"
+mkdir -p $NEW_IMAGE_DIR/copy/morphix/
+convert $GRAPHIC -resize 1024x768 -size 1024x768 xc:white +swap -gravity center -composite $NEW_IMAGE_DIR/copy/morphix/background.png
}
cleanup_and_make_iso ()
{
-make-iso $NEW_IMAGE_DIR $ENDISO
+make-iso $NEW_IMAGE_DIR $ENDISO $TITLE
rm $TMP_DIR -R 2>/dev/null
rm $TMP_FILE 2>/dev/null
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.