Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 06 Apr 2015 14:04:20 UTC Commit: f8bde27b98f4b68fba03b88f187fd8704e7793c2 https://github.com/geany/geany-plugins/commit/f8bde27b98f4b68fba03b88f187fd8...
Log Message: ----------- Fix status.m4 on FreeBSD
The default FreeBSD shell does not understand `+=` nor `for ((...))`, so use more portable alternatives.
Modified Paths: -------------- build/status.m4
Modified: build/status.m4 16 lines changed, 8 insertions(+), 8 deletions(-) =================================================================== @@ -1,23 +1,23 @@ dnl add plugin status message, e.g. GP_STATUS_PLUGIN_ADD(plugin,yes) AC_DEFUN([GP_STATUS_PLUGIN_ADD], [ - plugins_statusmsg+="$1:$2 -" + AS_VAR_APPEND([plugins_statusmsg],["$1:$2 +"]) ])
dnl add feature status message, e.g. GP_STATUS_FEATURE_ADD(feature,yes) AC_DEFUN([GP_STATUS_FEATURE_ADD], [ - feature_statusmsg+="$1:$2 -" + AS_VAR_APPEND([feature_statusmsg],["$1:$2 +"]) ])
dnl add build feature status message, e.g. dnl GP_STATUS_BUIL_FEATURE_ADD(build_feature,yes) AC_DEFUN([GP_STATUS_BUILD_FEATURE_ADD], [ - build_feature_statusmsg+="$1:$2 -" + AS_VAR_APPEND([build_feature_statusmsg],["$1:$2 +"]) ])
dnl indent $1_statusmsg with RHS at col $2 @@ -27,9 +27,9 @@ AC_DEFUN([_GP_STATUS_PRINT_INDENT_], test -z "$line" && break; plugin=" ${line%:*}:" status=${line#*:} - let extracols=$2-${#plugin} + let extracols=$2-${#plugin} >/dev/null printf "$plugin" - for (( i=0; $i<$extracols; i++ )); do + for i in $(seq 1 $extracols); do printf ' ' done echo $status
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).