File tree 2 files changed +21
-9
lines changed
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a978d534258241332a186b78df0db9ebffc4b1ee
2
+ refs/heads/master: 9d925436f32065f4a1940a9728e4b6f9c8e22c08
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- CFG_SRC_DIR=${0% ${0##*/ } }
4
- CFG_BUILD_DIR=$PWD
5
-
6
3
msg () {
7
4
echo " configure: $1 "
8
5
}
@@ -78,6 +75,26 @@ need_cmd grep
78
75
need_cmd xargs
79
76
need_cmd cp
80
77
need_cmd find
78
+ need_cmd uname
79
+ need_cmd date
80
+
81
+ msg " inspecting environment"
82
+
83
+ CFG_OSTYPE=$( uname -s)
84
+ CFG_CPUTYPE=$( uname -m)
85
+
86
+ case $CFG_OSTYPE in
87
+
88
+ MINGW* )
89
+ CFG_SRC_DIR=CFG_SRC_DIR=${0% ${0##* \\ } }
90
+ CFG_BUILD_DIR=$PWD
91
+ ;;
92
+
93
+ * )
94
+ CFG_SRC_DIR=CFG_SRC_DIR=${0% ${0##*/ } }
95
+ CFG_BUILD_DIR=$PWD
96
+ ;;
97
+ esac
81
98
82
99
msg " recreating config.mk"
83
100
echo ' ' > config.mk
95
112
make_dir $i
96
113
done
97
114
98
- msg " inspecting environment"
99
-
100
- CFG_OSTYPE=$( uname -s)
101
- CFG_CPUTYPE=$( uname -m)
102
-
103
115
putvar CFG_SRC_DIR
104
116
putvar CFG_BUILD_DIR
105
117
putvar CFG_OSTYPE
You can’t perform that action at this time.
0 commit comments