Browse Source

[sde-commit] Changed to use gawk instead of awk, which on some systems (Ubuntu) points to mawk

karasz/new-early
Alejandro 17 years ago
parent
commit
ad3e31d72b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bin/sde-commit

+ 2
- 2
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."

Loading…
Cancel
Save