aboutsummaryrefslogtreecommitdiffstats
path: root/create_dual.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_dual.sh')
-rwxr-xr-xcreate_dual.sh107
1 files changed, 0 insertions, 107 deletions
diff --git a/create_dual.sh b/create_dual.sh
deleted file mode 100755
index 5c77f15..0000000
--- a/create_dual.sh
+++ /dev/null
@@ -1,107 +0,0 @@
-#!/bin/sh
-
-DISTRIB=Mageia
-TREE=cauldron
-TAG=vanda
-VERSION=5
-SUPPORT=dual-DVD
-VV=1
-MEDIAMAIN=media/core
-PIECES="$HOME/build_bcd/pieces"
-OLDBUILDPATH="$HOME/build_bcd/build/mageia-dual-$VERSION"
-BUILDPATH="$HOME/build_bcd/build/$DISTRIB-$VERSION-$SUPPORT"
-BUILDISOPATH="$HOME/build_bcd/iso/$DISTRIB-$VERSION-$SUPPORT"
-
-# genisoimage options
-AGENISO="$DISTRIB - 5"
-PUBLISHER="Mageia.Org"
-SYSID="$PUBLISHER"
-TOOL="$SYSID BCD"
-VOLSET="$SYSID $DISTRIB - $VERSION"
-VOLUME="$DISTRIB-$VERSION"
-
-echo $BUILDPATH/x86_64/$MEDIAMAIN
-
-# build both arch
-./bcd.pl dual.xml all copy noiso
-./bcd.pl dual64.xml all copy noiso
-
-# clean
-rm -rf $BUILDPATH
-rm -rvf $BUILDISOPATH
-mkdir -p $BUILDPATH
-mkdir -p $BUILDISOPATH
-
-# remove stuff to make size fit
-for i in i586 x86_64
-do
- cp -af $OLDBUILDPATH-$i/$i $BUILDPATH
- rm -rf $BUILDPATH/$i/install/images
- rm -rf $BUILDPATH/$i/isolinux
- cp -f $PIECES/iso/dual/compssUsers.pl $BUILDPATH/$i/media/media_info
-done
-sync
-
-cp -r $PIECES/iso/dual/isolinux $BUILDPATH
-
-for i in i586 x86_64
-do
- cp -r $PIECES/iso/images/$i $BUILDPATH/isolinux/
-done
-
-
-for i in i586 x86_64
-do
- perl -pi -e 's/Core media/Core Release/g' $BUILDPATH/$i/media/media_info/media.cfg
-done
-
-# use symbolic links on noarch
-
-for i in core nonfree
-do
- cd $BUILDPATH/x86_64/media/$i
-
- for j in *noarch.rpm
- do
- if [ -f "../../../i586/$MEDIAMAIN/$j" ];then
- echo $j
- echo "erase package $j"
- rm -vf $j
- echo "link with the i586 one"
- ln -sf ../../../i586/$MEDIAMAIN/$j .
- else
- echo "no ../../../i586/$MEDIAMAIN/$j package"
- fi
- done
-done
-
-# build idx file, add release notes
-for i in i586 x86_64
-do
- cat $OLDBUILDPATH-$i/$i/pkg-$VERSION-$TAG.idx >> $BUILDPATH/$DISTRIB-$VERSION-$SUPPORT.idx
- cp $PIECES/$TREE/i586/release-notes* $BUILDPATH/$i
- cp $PIECES/$TREE/i586/index.html $BUILDPATH/$i
-done
-
-# build iso
-xorriso -as genisofs -f -r -J -hide-rr-moved -nobak -cache-inodes -no-emul-boot -boot-load-size 4 \
- -A "$AGENISO" \
- -publisher "$PUBLISHER" \
- -sysid "$SYSID" \
- -p "$TOOL" \
- -volset "$VOLSET" \
- -V "$VOLUME" \
- -o "$BUILDISOPATH/$DISTRIB-$VERSION-$SUPPORT.iso" \
- -b isolinux/isolinux.bin \
- -boot-info-table \
- -quiet \
- $BUILDPATH/
-
-du -sh $BUILDISOPATH/$DISTRIB-$VERSION-$SUPPORT.iso
-echo "$BUILDISOPATH/$DISTRIB-$VERSION-$SUPPORT.idx"
-cd $BUILDISOPATH/
-isohybrid -o 1 $BUILDISOPATH/$DISTRIB-$VERSION-$SUPPORT.iso
-cp $BUILDPATH/$DISTRIB-$VERSION-$SUPPORT.idx .
-md5sum $DISTRIB-$VERSION-$SUPPORT.iso > $DISTRIB-$VERSION-$SUPPORT.iso.md5
-sha1sum $DISTRIB-$VERSION-$SUPPORT.iso > $DISTRIB-$VERSION-$SUPPORT.iso.sha1
-date > $BUILDISOPATH/DATE.txt