On Wed, 2010-08-18 at 13:16 +0000, [email protected] wrote: > ------------------------------------------------------------ > revno: 378 > committer: Garth N. Wells <[email protected]> > branch nick: dorsal > timestamp: Wed 2010-08-18 14:14:01 +0100 > message: > Add openSSUE 11.3
Unfortunately this doesn't work. How can I get some screen output from inside the function 'guess_platform' in dorsal.sh? Garth > modified: > dorsal.sh > > > -- > lp:dorsal > https://code.launchpad.net/~dorsal-core/dorsal/main > > Your team Dorsal Team is subscribed to branch lp:dorsal. > To unsubscribe from this branch go to > https://code.launchpad.net/~dorsal-core/dorsal/main/+edit-subscription > differences between files attachment (revision-diff.txt) > === modified file 'dorsal.sh' > --- dorsal.sh 2010-08-17 17:51:17 +0000 > +++ dorsal.sh 2010-08-18 13:14:01 +0000 > @@ -242,38 +242,39 @@ > } > > guess_platform() { > - # Try to guess the name of the platform we're running on > - if [ -f /usr/bin/cygwin1.dll ] > - then > - echo xp > - elif [ -x /usr/bin/sw_vers ] > - then > - local MACOSVER=$(sw_vers -productVersion) > - case ${MACOSVER} in > - 10.4*) echo tiger;; > - 10.5*) echo leopard;; > - 10.6*) echo snowleopard;; > - esac > - elif [ -x /usr/bin/lsb_release ]; then > - local DISTRO=$(lsb_release -i -s) > - local CODENAME=$(lsb_release -c -s) > - local DESCRIPTION=$(lsb_release -d -s) > - case ${DISTRO}:${CODENAME}:${DESCRIPTION} in > - Ubuntu:*:*) echo ${CODENAME};; > - Debian:*:*) echo ${CODENAME};; > - Gentoo:*:*) echo gentoo;; > - *:Cambridge:*) echo fedora10;; > - *:Leonidas:*) echo fedora11;; > - *:Constantine:*) echo fedora12;; > - *:Goddard:*) echo fedora13;; > - *:Nahant*:*) echo rhel4;; > - *:Tikanga*:*) echo rhel5;; > - *:*:CentOS*\ 4*) echo rhel4;; > - *:*:CentOS*\ 5*) echo rhel5;; > - *:*:openSUSE\ 11.1*) echo opensuse11.1;; > - *:*:openSUSE\ 11.2*) echo opensuse11.2;; > - esac > - fi > + # Try to guess the name of the platform we're running on > + if [ -f /usr/bin/cygwin1.dll ] > + then > + echo xp > + elif [ -x /usr/bin/sw_vers ] > + then > + local MACOSVER=$(sw_vers -productVersion) > + case ${MACOSVER} in > + 10.4*) echo tiger;; > + 10.5*) echo leopard;; > + 10.6*) echo snowleopard;; > + esac > + elif [ -x /usr/bin/lsb_release ]; then > + local DISTRO=$(lsb_release -i -s) > + local CODENAME=$(lsb_release -c -s) > + local DESCRIPTION=$(lsb_release -d -s) > + case ${DISTRO}:${CODENAME}:${DESCRIPTION} in > + Ubuntu:*:*) echo ${CODENAME};; > + Debian:*:*) echo ${CODENAME};; > + Gentoo:*:*) echo gentoo;; > + *:Cambridge:*) echo fedora10;; > + *:Leonidas:*) echo fedora11;; > + *:Constantine:*) echo fedora12;; > + *:Goddard:*) echo fedora13;; > + *:Nahant*:*) echo rhel4;; > + *:Tikanga*:*) echo rhel5;; > + *:*:CentOS*\ 4*) echo rhel4;; > + *:*:CentOS*\ 5*) echo rhel5;; > + *:*:openSUSE\ 11.1*) echo opensuse11.1;; > + *:*:openSUSE\ 11.2*) echo opensuse11.2;; > + *:*:openSUSE\ 11.3*) echo opensuse11.3;; > + esac > + fi > } > > guess_architecture() { > @@ -326,7 +327,7 @@ > else > cecho ${BAD} "Error: No project configuration directory found for project > ${PROJECT}." > echo "Please check if you have specified right project name in dorsal.cfg" > - echo "Please check if you have directory called ${PROJECT}" > + echo "Please check if you have directory called ${PROJECT}" > echo "with subdirectories ${PROJECT}/platforms and ${PROJECT}/packages" > exit 1 > fi > _______________________________________________ Mailing list: https://launchpad.net/~dorsal Post to : [email protected] Unsubscribe : https://launchpad.net/~dorsal More help : https://help.launchpad.net/ListHelp

