From a63e4674808ce7049b3ddbb98570093ef2c0bd94 Mon Sep 17 00:00:00 2001 From: Eric Radman Date: Mon, 26 Mar 2018 21:15:18 -0400 Subject: [PATCH] Minor simplification of ./configure --- configure | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 64526bd..48e1752 100755 --- a/configure +++ b/configure @@ -1,15 +1,14 @@ #!/bin/sh -copy_mk() -{ - cmd="cp $1/Makefile.$2 Makefile" +copy_mk() { + cmd="cp Makefile.$1 Makefile" echo "$cmd"; $cmd } case `uname` in - Darwin) copy_mk . macos ;; - Linux) copy_mk . linux ;; - *) copy_mk . bsd ;; + Darwin) copy_mk macos ;; + Linux) copy_mk linux ;; + *) copy_mk bsd ;; esac [ $# = 0 ] && exit 0 @@ -26,4 +25,4 @@ CFLAGS="-static" make test PREFIX=\$HOME/local make install HELP -exit 2 +exit 1