Someday I'll have a talk with the person who thought backslashes were wise in win32.

This commit is contained in:
Graydon Hoare 2011-03-23 13:26:17 -07:00
parent a978d53425
commit 9d925436f3

28
configure vendored
View File

@ -1,8 +1,5 @@
#!/bin/sh #!/bin/sh
CFG_SRC_DIR=${0%${0##*/}}
CFG_BUILD_DIR=$PWD
msg() { msg() {
echo "configure: $1" echo "configure: $1"
} }
@ -78,6 +75,26 @@ need_cmd grep
need_cmd xargs need_cmd xargs
need_cmd cp need_cmd cp
need_cmd find need_cmd find
need_cmd uname
need_cmd date
msg "inspecting environment"
CFG_OSTYPE=$(uname -s)
CFG_CPUTYPE=$(uname -m)
case $CFG_OSTYPE in
MINGW*)
CFG_SRC_DIR=CFG_SRC_DIR=${0%${0##*\\}}
CFG_BUILD_DIR=$PWD
;;
*)
CFG_SRC_DIR=CFG_SRC_DIR=${0%${0##*/}}
CFG_BUILD_DIR=$PWD
;;
esac
msg "recreating config.mk" msg "recreating config.mk"
echo '' >config.mk echo '' >config.mk
@ -95,11 +112,6 @@ do
make_dir $i make_dir $i
done done
msg "inspecting environment"
CFG_OSTYPE=$(uname -s)
CFG_CPUTYPE=$(uname -m)
putvar CFG_SRC_DIR putvar CFG_SRC_DIR
putvar CFG_BUILD_DIR putvar CFG_BUILD_DIR
putvar CFG_OSTYPE putvar CFG_OSTYPE