get-scripts rev 78

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 09:13:38 2019 +0100 (2019-02-26)
parents d4c157b15c60
children 918e81123812
files b43-firmware bitcoin cpp2 firefox-official gcc2 gcc272 libreoffice openoffice3 palemoon
line diff
     1.1 --- a/b43-firmware	Fri Feb 09 16:25:21 2018 +0100
     1.2 +++ b/b43-firmware	Tue Feb 26 09:13:38 2019 +0100
     1.3 @@ -8,7 +8,7 @@
     1.4  
     1.5  MODULE_LIST=""
     1.6  while read module desc ; do
     1.7 -	[ "$MODULE" == "$module" ] && SHORT_DESC="$desc"
     1.8 +	[ "$MODULE" = "$module" ] && SHORT_DESC="$desc"
     1.9  	MODULE_LIST="$MODULE_LIST $module"
    1.10  done <<EOT
    1.11  b43		Broadcom $MODULE firmware.
     2.1 --- a/bitcoin	Fri Feb 09 16:25:21 2018 +0100
     2.2 +++ b/bitcoin	Tue Feb 26 09:13:38 2019 +0100
     2.3 @@ -20,7 +20,7 @@
     2.4  esac
     2.5  TARBALL="$(basename $WGET_URL)"
     2.6  VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.*tar.*/\1/')"
     2.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     2.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     2.9  wget --no-check-certificate -O $TARBALL "$WGET_URL"
    2.10  
    2.11  [ -f $TARBALL ] || abort_package
     3.1 --- a/cpp2	Fri Feb 09 16:25:21 2018 +0100
     3.2 +++ b/cpp2	Tue Feb 26 09:13:38 2019 +0100
     3.3 @@ -4,7 +4,7 @@
     3.4  VERSION="2.95.4-24"
     3.5  LICENSE="GPL2"
     3.6  # end of get.list data
     3.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     3.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     3.9  TARBALL=cpp-2.95_${VERSION}_i386.deb
    3.10  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
    3.11  
     4.1 --- a/firefox-official	Fri Feb 09 16:25:21 2018 +0100
     4.2 +++ b/firefox-official	Tue Feb 26 09:13:38 2019 +0100
     4.3 @@ -6,7 +6,7 @@
     4.4  URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/?C=M;O=D"
     4.5  VERSION=$(wget -O - $URL | sed \
     4.6  	  '/href="[0-9\./]*"/!d;s|.*href="[^"]*">\([^</]*\).*|\1|;q')
     4.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     4.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     4.9  SOURCE="firefox"
    4.10  TARBALL="$SOURCE-$VERSION.tar.bz2"
    4.11  WGET_URL="${URL%\?*}$VERSION/linux-i686/en-US/$TARBALL"
     5.1 --- a/gcc2	Fri Feb 09 16:25:21 2018 +0100
     5.2 +++ b/gcc2	Tue Feb 26 09:13:38 2019 +0100
     5.3 @@ -4,7 +4,7 @@
     5.4  VERSION="2.95.4-24"
     5.5  LICENSE="GPL2"
     5.6  # end of get.list data
     5.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     5.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     5.9  TARBALL=gcc-2.95_${VERSION}_i386.deb
    5.10  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
    5.11  DEPENDS="cpp2 binutils"
     6.1 --- a/gcc272	Fri Feb 09 16:25:21 2018 +0100
     6.2 +++ b/gcc272	Tue Feb 26 09:13:38 2019 +0100
     6.3 @@ -4,7 +4,7 @@
     6.4  VERSION="2.7.2.3-19"
     6.5  LICENSE="GPL2"
     6.6  # end of get.list data
     6.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     6.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     6.9  TARBALL=gcc272_${VERSION}_i386.deb
    6.10  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL
    6.11  DEPENDS="binutils"
     7.1 --- a/libreoffice	Fri Feb 09 16:25:21 2018 +0100
     7.2 +++ b/libreoffice	Tue Feb 26 09:13:38 2019 +0100
     7.3 @@ -16,7 +16,7 @@
     7.4  if [ -z "$VERSION" ]; then
     7.5  	abort_package "Can't detect an appropriate version. The version numbering or URL may have changed. Aborted."
     7.6  fi
     7.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     7.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     7.9  VER="${VERSION/\-/}" # without hyphens
    7.10  
    7.11  
     8.1 --- a/openoffice3	Fri Feb 09 16:25:21 2018 +0100
     8.2 +++ b/openoffice3	Tue Feb 26 09:13:38 2019 +0100
     8.3 @@ -27,7 +27,7 @@
     8.4  	VERSION="$(basename $(wget -O - $MIRROR/$DIR/ 2> /dev/null | grep \
     8.5  	href=\"[0-9] | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/') 2> /dev/null)"
     8.6  	[ -n "$VERSION" ] || continue
     8.7 -	[ "$1" == "--get-version" ] && echo $VERSION && exit
     8.8 +	[ "$1" = "--get-version" ] && echo $VERSION && exit
     8.9  	break
    8.10  done
    8.11  
     9.1 --- a/palemoon	Fri Feb 09 16:25:21 2018 +0100
     9.2 +++ b/palemoon	Tue Feb 26 09:13:38 2019 +0100
     9.3 @@ -9,7 +9,7 @@
     9.4  VERSION="$(echo "$WGET_URL" | sed 's|.*-\([0-9\.]*\)\..*|\1|')"
     9.5  TARBALL="$(echo "$WGET_URL" | sed 's|.*/||')"
     9.6  MAINTAINER="al.bobylev@gmail.com"
     9.7 -[ "$1" == "--get-version" ] && echo $VERSION && exit
     9.8 +[ "$1" = "--get-version" ] && echo $VERSION && exit
     9.9  TAGS="browser"
    9.10  DEPENDS="dbus-glib"
    9.11