[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

building multiple archs with yacs-0.4

I thought this script might be useful to those playing
with YACS-0.4. It simply loops building images for each
of n archectures.  As documented, only i386 will build
"official-images", ie images complete with README files
and install dirs.  Your mileage may varry.

# Build multiple CD-Images using YACS
# Requires that a CONF.[arch].sh file exists for
# each archecture...ie CONF.i386.sh, simply copy
# the CONF.sh to CONF.i386.sh and modify it to taste.  
# As of today, i386 will build official-image
# sparc, alpha, m68k arch's will build simple CD's
# powerpc fails.
# Mon Aug 23 08:19:44 PDT 1999  -- jwest
# edit this line to build the archs you desire
for ARCH in i386 sparc alpha m68k powerpc

        echo setup CONF.$ARCH.sh
        . ./CONF-$ARCH.sh

        echo "Cleaning up stale files in tmp"
                rm -r /home/ftp/pub/tmp/potato-$ARCH
                #mkdir /home/ftp/pub/tmp/potato-$ARCH
                rm -r /home/ftp/pub/tmp/potato-source

        echo "Potato Status"
        make potato_status

        echo "Running mirrorcheck"
        make mirrorcheck

        if [ $? -gt 0 ] ; then
                echo make mirrorcheck returned non 0:
                echo Exit.
                exit 1

        echo "building trees"
        make list COMPLETE=1 NONUS=1 SIZELIMIT1=576716800 2>error-$ARCH.log |
tee $ARCH.log

        echo "building images"
        if [ $ARCH == "i386" ] ; then
                make bin-official_images  # official adds readme and stuff
                make src-images           # and make source cds
                make bin-images

        echo -----------------------------------------


Jim Westveer <jwest@netnw.com>
I get to work, flip the excuse page over:
    "Sarchasm: The gulf between the author of sarcastic wit 
                     and the recipient who doesn't get it"
Fair enough, looks like it's gointo be a good day. 
E-Mail: Jim Westveer <jwest@netnw.com>
phone   425-392-0141
fax     425-557-0660                  Date: 23-Aug-99
URL     lcs.issaquah.wa.us            Time: 08:44:06
Key fingerprint = DC 49 E8 7E 76 DD 30 2D 8D F1 B4 D8 A3 60 4C 04

Reply to: