From ad3e31d72ba27fef4c1d1350c362d86ad73f9643 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Thu, 17 Apr 2008 22:53:52 +0200 Subject: [PATCH] [sde-commit] Changed to use gawk instead of awk, which on some systems (Ubuntu) points to mawk --- bin/sde-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sde-commit b/bin/sde-commit index 10a2fda..4436cab 100755 --- a/bin/sde-commit +++ b/bin/sde-commit @@ -141,7 +141,7 @@ if [ -d ".git" ]; then if [ -z "$logfile" ]; then logfile=$tmpfile.log git-diff-index -M --cached -p HEAD | sed -e "s,^\(---\|\+\+\+\) [ab]/,\1 $root/," | - awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile + gawk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile fi elif [ -d ".svn" ]; then # svn status @@ -151,7 +151,7 @@ elif [ -d ".svn" ]; then if [ -z "$logfile" ]; then logfile=$tmpfile.log cat $tmpfile.diff | sed -e "s,^\(---\|\+\+\+\) [ab]/,\1 $root/," | - awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile + gawk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile fi else echo_abort 3 "$root: unknown version control system."