Browse Source

Minor simplification of ./configure

pull/12/head
Eric Radman 2 years ago
parent
commit
a63e467480
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      configure

+ 6
- 7
configure View File

@ -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

Loading…
Cancel
Save