Browse Source

Changed scripts/*'s [ ==s to =s

karasz/new-early
Alejandro Mery 18 years ago
parent
commit
7ed91fb6fa
4 changed files with 12 additions and 11 deletions
  1. +4
    -4
      scripts/Build-Pkg
  2. +2
    -2
      scripts/Build-Target
  3. +1
    -1
      scripts/Build-Tools
  4. +5
    -4
      scripts/Check-PkgVersion

+ 4
- 4
scripts/Build-Pkg

@ -305,7 +305,7 @@ rm -f $root/var/adm/logs/$stagelevel-$xpkg.log
rm -f $root/var/adm/logs/$stagelevel-$xpkg.err
if [ $this_is_the_2nd_run = 0 ] ; then
if [ "$toolsdir" == "tools.chroot" ]; then
if [ "$toolsdir" = "tools.chroot" ]; then
. /etc/profile
fi
@ -405,7 +405,7 @@ targetdir="$base/target/$target"
detect_patchfiles
if [ "$toolsdir" == "tools.cross" ]; then
if [ "$toolsdir" = "tools.cross" ]; then
if atstage toolchain; then
var_append patchfiles ' ' "`ls $confdir/*.patch.toolchain{,.$arch} \
2>/dev/null | tr '\n' ' '`"
@ -441,7 +441,7 @@ fi
for x in $( get_expanded $base/target/%/pkg_$pkg.conf $targetchain ) \
$confdir/$pkg.conf ; do
if [ -f $x ]; then
# if [[ $x == */$pkg.conf ]]; then
# if [[ $x = */$pkg.conf ]]; then
# echo_status "Reading package configuration from package directory."
# else
# echo_status "Reading package configuration from target directory."
@ -661,7 +661,7 @@ abort() {
if [ "$SDECFG_FLIST" = "flwrapper" -o \
"$SDECFG_FLIST" = "strace" ] ; then
if [ "$toolsdir" == "tools.cross" ]; then
if [ "$toolsdir" = "tools.cross" ]; then
xbase="$( cd $xroot/ 2> /dev/null ; pwd -P )"
flistvalid="$xbase|$flistvalid"

+ 2
- 2
scripts/Build-Target

@ -202,7 +202,7 @@ pkgloop_package() {
cmd_prefix="-prefix $pkg_prefix"
else cmd_prefix= ; fi
if [ "$autodownload" == 1 ]; then
if [ "$autodownload" = 1 ]; then
./bin/sde-download -cfg $config $downloadopt $pkg_name
fi
@ -233,7 +233,7 @@ pkgloop_package() {
echo_error "built successfully in (at least) the current stage."
else
./lib/sde-binary/package.sh --type "$SDECFG_PKGFILE_TYPE" \
$( if [ "${SDECFG_PKGFILE_VER}" == 1 ]; then echo '--versioned'; fi ) \
$( if [ "${SDECFG_PKGFILE_VER}" = 1 ]; then echo '--versioned'; fi ) \
--root "${build_root}" --output "${build_pkgs}" ${pkg_name}
fi
fi

+ 1
- 1
scripts/Build-Tools

@ -200,7 +200,7 @@ EOT
fi
done
#
if [ "$toolsdir" == "tools.chroot" ]; then
if [ "$toolsdir" = "tools.chroot" ]; then
echo_status "Building $toolsdir/wrapper/{uname,arch}."
sed -e "s,@@ARCH_MACHINE@@,$arch_machine,g" \

+ 5
- 4
scripts/Check-PkgVersion

@ -1,9 +1,10 @@
#!/bin/bash
#
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: scripts/Check-PkgVersion
# Filename: scripts/Check-PkgVersion
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -13,7 +14,7 @@
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
# --- SDE-COPYRIGHT-NOTE-END ---
if [ "$1" = "-repository" ] ; then
shift ; for y ; do
@ -70,7 +71,7 @@ for package ; do
pattern="`echo $x | cut -f3 -d' '`"
url="`echo $x | cut -f4 -d' '`"; url="${url#-}"
if [ "${url:0:1}" == "!" ]; then
if [ "${url:0:1}" = "!" ]; then
pattern="${url##*/}"
url="${url%/*}"
fi

Loading…
Cancel
Save