diff options
Diffstat (limited to 'build-aux')
| -rwxr-xr-x | build-aux/pkg-version | 6 | ||||
| -rwxr-xr-x | build-aux/xdrgen | 8 | 
2 files changed, 7 insertions, 7 deletions
diff --git a/build-aux/pkg-version b/build-aux/pkg-version index 15efb154f6a..83d4a5f9136 100755 --- a/build-aux/pkg-version +++ b/build-aux/pkg-version @@ -1,11 +1,11 @@ -#!/bin/bash +#!/bin/sh  # To override version/release from git,  # create VERSION file containing text with version/release  # eg. v3.4.0-1  PKG_VERSION=`cat VERSION 2> /dev/null || git describe --tags --match "v[0-9]*"` -function get_version () +get_version()  {      # tags and output versions:      #   - v3.4.0   => 3.4.0 (upstream clean) @@ -21,7 +21,7 @@ function get_version ()      echo $PKG_VERSION | awk "$AWK_VERSION" | tr -cd '[:alnum:].'  } -function get_release () +get_release()  {      # tags and output releases:      #   - v3.4.0   => 0 (upstream clean) diff --git a/build-aux/xdrgen b/build-aux/xdrgen index e826111b9cc..c6dd5cc0340 100755 --- a/build-aux/xdrgen +++ b/build-aux/xdrgen @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh  append_licence_header ()  { @@ -67,7 +67,7 @@ gen_headers ()      rm -f $hfile;      rpcgen -h -o $hfile $xfile;      # the '#ifdef' part of file should be fixed -    sed -i -e 's/-/_/g' $hfile; +    sed -e 's/-/_/g' $hfile > ${hfile}.new && mv ${hfile}.new $hfile;       # Gen header to temp file and append generated file      append_licence_header $hfile $tmp_hfile;      # now move the destination file to actual original file @@ -85,11 +85,11 @@ main ()          exit 1;      fi -    if [ $1 == "header" ]; then +    if [ $1 = "header" ]; then          gen_headers $2      fi -    if [ $1 == "source" ]; then +    if [ $1 = "source" ]; then          gen_sources $2      fi  }  | 
