Changeset 1042


Ignore:
Timestamp:
Jan 7, 2007, 12:10:23 PM (13 years ago)
Author:
bruno
Message:

Syntax review (== suppresse for stricter POSIX conformance with =)

Location:
branches/stable/tools
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/DISTROS

    r1034 r1042  
    1919slackware_10.2
    2020slackware_11.0
     21freebsd_5.5
  • branches/stable/tools/build2pkg

    r1040 r1042  
    1111dname=`dirname $0`
    1212prem=`echo $dname |cut -c1`
    13 if [ ${prem} == "/" ]; then
     13if [ _${prem} = _"/" ]; then
    1414    export TOOLHOME=$dname
    1515else
  • branches/stable/tools/build2qemu

    r1012 r1042  
    66#
    77
    8 #if [ _"$1" == _"" ]; then
     8#if [ _"$1" = _"" ]; then
    99    #echo "Syntax: build2qemu [version-tag [vm1]..|vmx]] )"
    1010    #exit -1
     
    1616dname=`dirname $0`
    1717prem=`echo $dname |cut -c1`
    18 if [ ${prem} == "/" ]; then
     18if [ _${prem} = _"/" ]; then
    1919    export TOOLHOME=$dname
    2020else
     
    3737
    3838c=""
    39 if [ _"$1" == _"--pkg" ]; then
     39if [ _"$1" = _"--pkg" ]; then
    4040    shift
    4141    c=$1
     
    4343fi
    4444
    45 if [ _"$1" == _"" ]; then
     45if [ _"$1" = _"" ]; then
    4646    export VMS=`cat ${TOOLHOME}/DISTROS`
    4747    single=0
  • branches/stable/tools/distro-env

    r1041 r1042  
    6565        fi
    6666    elif [ -e /etc/motd ]; then
    67         grep -q FreeBSD /etc/motd
     67        head -1 /etc/motd | grep -q FreeBSD
    6868        if [ $? -eq 0 ]; then
    6969            export ddir="freebsd"
    70             export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
     70            export dver=`head -1 /etc/motd | awk '{print $2}' /etc/motd | cut -d- -f1`
    7171        else
    7272            export ddir="unknown"
  • branches/stable/tools/file2ftp

    r924 r1042  
    1010dname=`dirname $0`
    1111prem=`echo $dname |cut -c1`
    12 if [ ${prem} == "/" ]; then
     12if [ _${prem} = _"/" ]; then
    1313    export TOOLHOME=$dname
    1414else
  • branches/stable/tools/livwww

    r1011 r1042  
    3333dname=`dirname $0`
    3434prem=`echo $dname |cut -c1`
    35 if [ ${prem} == "/" ]; then
     35if [ ${prem} = "/" ]; then
    3636        export TOOLHOME=$dname
    3737else
     
    9191$TOOLHOME/mknewshtml.pl $LOCALDIR
    9292
    93 if [ _"$1" == _"" ]; then
     93if [ _"$1" = _"" ]; then
    9494        exit 0
    9595else
    96     if [ _"$1" == _"test" ]; then
     96    if [ _"$1" = _"test" ]; then
    9797        DESTDIR=$TESTDIR
    9898    else
  • branches/stable/tools/mkannounce

    r1028 r1042  
    1010dname=`dirname $0`
    1111prem=`echo $dname |cut -c1`
    12 if [ ${prem} == "/" ]; then
     12if [ _${prem} = _"/" ]; then
    1313    export TOOLHOME=$dname
    1414else
  • branches/stable/tools/mknewtag

    r924 r1042  
    1010dname=`dirname $0`
    1111prem=`echo $dname |cut -c1`
    12 if [ ${prem} == "/" ]; then
     12if [ _${prem} = _"/" ]; then
    1313    export TOOLHOME=$dname
    1414else
  • branches/stable/tools/mknewversion

    r1020 r1042  
    1010dname=`dirname $0`
    1111prem=`echo $dname |cut -c1`
    12 if [ ${prem} == "/" ]; then
     12if [ _${prem} = _"/" ]; then
    1313    export TOOLHOME=$dname
    1414else
  • branches/stable/tools/mkqemu

    r899 r1042  
    66#
    77
    8 if [ _"$1" == _"" ]; then
     8if [ _"$1" = _"" ]; then
    99    echo "Syntax: qemu vm"
    1010    exit -1
     
    2020
    2121ARCH=`/bin/arch`
    22 if [ $ARCH == "x86_64" ]; then
     22if [ $ARCH = "x86_64" ]; then
    2323    qemucmd32=/usr//bin/qemu-system-i386
    2424    qemucmd64=/usr//bin/qemu
  • branches/stable/tools/pkg2fc

    r1011 r1042  
    99dname=`dirname $0`
    1010prem=`echo $dname |cut -c1`
    11 if [ ${prem} == "/" ]; then
     11if [ _${prem} = _"/" ]; then
    1212        export TOOLHOME=$dname
    1313else
  • branches/stable/tools/pkg2ftp

    r1028 r1042  
    1010dname=`dirname $0`
    1111prem=`echo $dname |cut -c1`
    12 if [ ${prem} == "/" ]; then
     12if [ _${prem} = _"/" ]; then
    1313        export TOOLHOME=$dname
    1414else
  • branches/stable/tools/pkg2mdv

    r1039 r1042  
    99dname=`dirname $0`
    1010prem=`echo $dname |cut -c1`
    11 if [ ${prem} == "/" ]; then
     11if [ _${prem} = _"/" ]; then
    1212        export TOOLHOME=$dname
    1313else
  • branches/stable/tools/svn2build

    r1039 r1042  
    99dname=`dirname $0`
    1010prem=`echo $dname |cut -c1`
    11 if [ ${prem} == "/" ]; then
     11if [ _${prem} = _"/" ]; then
    1212        export TOOLHOME=$dname
    1313else
Note: See TracChangeset for help on using the changeset viewer.