Skip to content

Commit

Permalink
make autogen.sh a bit more portable
Browse files Browse the repository at this point in the history
cp -v does not work on Solaris 10, nor does $() with /bin/sh so instead
go for non verbose as -e will echo the commands performed anyway and
use backticks.
  • Loading branch information
pekdon authored and ueno committed May 26, 2021
1 parent b3243a7 commit 3ec2e9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

set -e

oldpwd=$(pwd)
topdir=$(dirname $0)
oldpwd=`pwd`
topdir=`dirname $0`
cd $topdir

# Some boiler plate to get git setup as expected
if test -d .git; then
if test -f .git/hooks/pre-commit.sample && \
test ! -f .git/hooks/pre-commit; then
cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit
fi
fi

Expand Down

0 comments on commit 3ec2e9f

Please sign in to comment.