diff --git a/bin/sde b/bin/sde index 07b042c..d21dc55 100755 --- a/bin/sde +++ b/bin/sde @@ -59,12 +59,12 @@ fi # switching to the right sde wrapper (SDEROOT specific) # if [ "$( readlink -f "$0" )" != "$SDEROOT/bin/sde" ]; then - if [ "$1" == "--loop" ]; then + if [ "$1" = "--loop" ]; then echo_abort 2 'loop detected, abort.' else exec "$SDEROOT/bin/sde" --loop "$@" fi -elif [ "$1" == "--loop" ]; then +elif [ "$1" = "--loop" ]; then shift fi @@ -73,7 +73,7 @@ fi . "$SDEROOT/lib/libsde.in" . "$SDEROOT/lib/sde-wrapper-command.in" -if [ $# -eq 0 -o "$1" == "--help" ]; then +if [ $# -eq 0 -o "$1" = "--help" ]; then sde_wrapper_command_help else command="$( sde_wrapper_command "$1" )" diff --git a/bin/sde-commit b/bin/sde-commit index 0c58bdc..f89f18b 100755 --- a/bin/sde-commit +++ b/bin/sde-commit @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-commit -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -76,7 +76,7 @@ locations=$( $SDEROOT/bin/sde-list-files --roots "$@" ) # we only accept one root at the time roots=$( echo "$locations" | cut -d' ' -f1 | sort -u ) root=$( echo "$roots" | head -n 1 ) -[ "$root" == "$roots" ] || echo_abort 1 "Locations from multiple repositories given, aborting." +[ "$root" = "$roots" ] || echo_abort 1 "Locations from multiple repositories given, aborting." # $root relative locations locations=$( echo "$locations" | cut -d' ' -f2 ) diff --git a/bin/sde-config-ini b/bin/sde-config-ini index 556c1b4..e706caf 100755 --- a/bin/sde-config-ini +++ b/bin/sde-config-ini @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-config-ini -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -160,7 +160,7 @@ for item; do [ "$section" != "$key" ] || key= # choose an action - if [ "$value" == "$item" ]; then + if [ "$value" = "$item" ]; then if [ -n "$delete" ]; then action='delete' else diff --git a/bin/sde-download b/bin/sde-download index a5e935e..4036019 100755 --- a/bin/sde-download +++ b/bin/sde-download @@ -207,7 +207,7 @@ detect_mirror() { if [ -z "$mirror" ]; then echo_error "Mirror detection loop hit a bug!" - elif [ "$mirror" == "broken" ]; then + elif [ "$mirror" = "broken" ]; then echo_warning "No Mirror Found!" else echo_info "Using mirror <$mirror>." @@ -230,7 +230,7 @@ download_file() { # Tarball file name: bzfile="`bz2filename "$gzfile"`" # Remove optional '-' prefix from $location - [ "${location:0:1}" == '-' ] && location="${location:1}" + [ "${location:0:1}" = '-' ] && location="${location:1}" # Lock file name: lkfile="tmp/down.lockfile.`echo $bzfile | tr / -`" @@ -537,13 +537,13 @@ download_file_now() { touch $HOME/.cvspass ;; svn|svn\+http) - if [ "$protocol" == "svn+http" ]; then + if [ "$protocol" = "svn+http" ]; then url="http://$url" else url="svn://$url" fi - if [ "${options:0:1}" == "-" ]; then + if [ "${options:0:1}" = "-" ]; then # the module is the last dir of $url module="${url##*/}" else diff --git a/bin/sde-download2 b/bin/sde-download2 index 3845d40..1a62a99 100755 --- a/bin/sde-download2 +++ b/bin/sde-download2 @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-download2 -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -120,7 +120,7 @@ while [ $# -gt 0 ]; do esac ;; --alt-dir) shift - if [ "$1" == "none" -o -z "$1" ]; then + if [ "$1" = "none" -o -z "$1" ]; then altdir= $SDEROOT/bin/sde-config-ini --file=$SDESETTINGS --delete "download.altdir" elif [ -d "$1/" ]; then @@ -200,7 +200,7 @@ esac | while read pkg cksum file location; do # a file was found, what should I do with it? [ $verbose -le 0 ] || echo_info "$pkg:${file##*/} found in $altfile ($mode)." - [ "$check" == "always" ] || check_this=no + [ "$check" = "always" ] || check_this=no case "$mode" in hardlink) cp -lf "$altfile" "$tmpfile" ;; @@ -234,9 +234,9 @@ esac | while read pkg cksum file location; do # validate the file against the known checksum # - if [ -s "$tmpfile" -a "$check_this" == "yes" -a "$cksum" != "X" ]; then + if [ -s "$tmpfile" -a "$check_this" = "yes" -a "$cksum" != "X" ]; then cksum_real=$( sh $SDEROOT/lib/sde-download/cksum.sh $tmpfile | cut -d' ' -f2 ) - if [ "$cksum" == "0" ]; then + if [ "$cksum" = "0" ]; then echo_warning "$pkg:${file##*/} is missing a checksum value, ignoring. ($cksum_real)" elif [ "$cksum" != "$cksum_real" ]; then echo_error "$pkg:${file##*/} has a wrong checksum, failing. ($cksum != $cksum_real)" diff --git a/bin/sde-install b/bin/sde-install index 5fe0f44..070f50d 100755 --- a/bin/sde-install +++ b/bin/sde-install @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-install -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -34,7 +34,7 @@ EOT if [ $# -ne 0 ]; then install_usage elif [ -L "$HOME/bin/sde" ]; then - if [ "$( readlink -f $HOME/bin/sde )" == "$SDEROOT/bin/sde" ]; then + if [ "$( readlink -f $HOME/bin/sde )" = "$SDEROOT/bin/sde" ]; then echo_warning "the same sde wrapper is already installed, skip." else echo_warning "sde wrapper already installed [$( readlink -f $HOME/bin/sde )]" diff --git a/bin/sde-list-download b/bin/sde-list-download index cbec14c..97f4075 100755 --- a/bin/sde-list-download +++ b/bin/sde-list-download @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-list-download -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -92,7 +92,7 @@ $SDEROOT/bin/sde-list-pkg ${config:+-c $config} ${extenders:+-e} ${repositories: if [ "$location" != "${location#!}" ]; then # keep untouched source="${location#!}" - elif [ "$location" == "${location% *}" -a "$location" != "${location%/}" ]; then + elif [ "$location" = "${location% *}" -a "$location" != "${location%/}" ]; then # no spaces, and trailing '/', append gzfile source="${location}${gzfile}" else diff --git a/bin/sde-list-files b/bin/sde-list-files index 4f7e1c2..08b724f 100755 --- a/bin/sde-list-files +++ b/bin/sde-list-files @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-list-files -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -59,7 +59,7 @@ print_error() { echo "$@" >&2; } print_file() { local file="$1" - if [ "$file" == "$SDEROOT" ]; then + if [ "$file" = "$SDEROOT" ]; then [ -n "$show_absolute_path" ] || file="." else [ -n "$show_absolute_path" ] || file="${file#$SDEROOT/}" @@ -72,7 +72,7 @@ print_file() { print_file_root() { local file="$1" root="$2" # $file arrives relative - if [ "$root" == "." -a -n "$show_absolute_path" ]; then + if [ "$root" = "." -a -n "$show_absolute_path" ]; then root="$SDEROOT" fi @@ -81,10 +81,10 @@ print_file_root() { for x; do y= - if [ "$x" == "." ]; then + if [ "$x" = "." ]; then # $PWD, explicitly y="$PWD" - elif [ "${x:0:1}" == "/" -a -e "$x" ]; then + elif [ "${x:0:1}" = "/" -a -e "$x" ]; then # absolute y="$x" elif [ -e "$SDEROOT/package"/*/"$x" ]; then @@ -108,7 +108,7 @@ for x; do if [ -z "$y" ]; then # missing print_error "$x: not found." - elif [ "$y" == "$SDEROOT" ]; then + elif [ "$y" = "$SDEROOT" ]; then # uh, the root itself if [ -n "$show_roots" ]; then print_file_root "." "." diff --git a/bin/sde-update b/bin/sde-update index 6d7870c..1e7ceb7 100755 --- a/bin/sde-update +++ b/bin/sde-update @@ -27,7 +27,7 @@ command='update' if [ $# -eq 0 ]; then # assuming default discriminator='tree' -elif [ "$1" == "--help" ]; then +elif [ "$1" = "--help" ]; then sde_wrapper_discriminator_help "$command" exit 1 else diff --git a/bin/sde-update-package b/bin/sde-update-package index 975ef96..3c010fb 100755 --- a/bin/sde-update-package +++ b/bin/sde-update-package @@ -118,7 +118,7 @@ update_package_md5() { shift echo_info "Loading MD5 file from '$md5'" - if [ "$1" == "--no-location" ]; then + if [ "$1" = "--no-location" ]; then nolocation=yes; shift echo_info "(Using individual download locations)" fi