Changeset 1474


Ignore:
Timestamp:
May 31, 2007, 10:10:22 AM (12 years ago)
Author:
bruno
Message:

Ubuntu support added for build process

Location:
branches/stable/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/DISTROS

    r1289 r1474  
    1919debian_3.1
    2020debian_4.0
     21ubuntu_7.04
    2122gentoo_1.6
    2223slackware_10.2
  • branches/stable/tools/distro-env

    r1076 r1474  
    6464            export dver = "sid"
    6565        fi
     66        if [ -e /etc/lsb-release ]; then
     67            grep -qi ubuntu /etc/lsb-release
     68            if  [ $? -eq 0 ]; then
     69                export ddir="ubuntu"
     70                export dver=`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d= -f2`
     71            fi
     72        fi
    6673    elif [ -e /etc/motd ]; then
    6774        head -1 /etc/motd | grep -q FreeBSD
     
    8289# Generate all other parameters
    8390#
    84 if [ $ddir = "debian" ]; then
     91if [ $ddir = "debian" -o $ddir = "ubuntu" ]; then
    8592    dfam="debian"
    8693    dtype="deb"
    87     suf=".${dfam}${dver}"
     94    suf=".${ddir}${dver}"
    8895elif [ $ddir = "gentoo" ]; then
    8996    dfam="gentoo"
  • branches/stable/tools/mkqemu

    r1467 r1474  
    2727if [ _"$QEMUAPP" != _"" ]; then
    2828    $qemucmd -m 256 $QEMUOPT -append "$QEMUAPP" -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
     29    exit 0
     30fi
     31
     32echo $m | grep -q '_64$'
     33if [ $? -ne 0 ]; then
     34     qemucmd=$qemucmd32
    2935else
    30     $qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
     36     qemucmd="$qemucmd64 -no-kqemu"
    3137fi
     38$qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
    3239) 2>&1 | tee /tmp/mkqemu.log
  • branches/stable/tools/qemu-vm.txt

    r1467 r1474  
    1919# Slackware
    2020# Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
     21#
     22# Ubuntu
     23apt-get install autoconf automake libtool g++ wget patch mondo groff imagemagick docbook-utils docbook2x docbook-to-man openssh-server dpkg-dev debian-builder dh-make fakeroot libnewt-dev libncurses5-dev
    2124
    2225#Changing CD during install:
  • branches/stable/tools/svn2build

    r1270 r1474  
    104104            m4 $MONDOTMP/mondorescue.mc $dest/distributions/$dfam/Makefile > $dest/distributions/${ddir}-$dver/Makefile
    105105        elif [ "$dtype" = "deb" ]; then
    106             cp -a $dest/distributions/$ddir/* $dest/distributions/${ddir}-$dver
    107             m4 $MONDOTMP/mondorescue.mc $dest/distributions/$ddir/rules > $dest/distributions/${ddir}-$dver/rules
     106            if [ -f $dest/distributions/$ddir/rules ]; then
     107                cp -a $dest/distributions/$ddir/* $dest/distributions/${ddir}-$dver
     108                inc=$dest/distributions/$ddir/rules
     109            elif [ -f $dest/distributions/$dfam/rules ]; then
     110                cp -a $dest/distributions/$dfam/* $dest/distributions/${ddir}-$dver
     111                inc=$dest/distributions/$dfam/rules
     112            else
     113                echo "Unable to build the .deb build files for this distro. Please report to authors"
     114                exit -1
     115            fi
     116            m4 $MONDOTMP/mondorescue.mc $inc > $dest/distributions/${ddir}-$dver/rules
    108117            $TOOLHOME/mkchangelog.pl $dtype $p $dest/distributions/${ddir}-$dver/changelog
    109118            if [ $? -ne 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.