summaryrefslogtreecommitdiff
path: root/lang/phantomjs/files/patch-build.sh
blob: 037058fad7c1c697d8cdbe41e2628e5ce831d426 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
$FreeBSD$

--- build.sh.orig	2013-01-15 07:48:35.556438142 +0900
+++ build.sh	2013-01-15 07:50:27.581439602 +0900
@@ -8,27 +8,27 @@
 COMPILE_JOBS=1
 MAKEFLAGS_JOBS=''
 
-if [[ "$MAKEFLAGS" != "" ]]; then
-  MAKEFLAGS_JOBS=$(echo $MAKEFLAGS | egrep -o '\-j[0-9]+' | egrep -o '[0-9]+')
-fi
-
-if [[ "$MAKEFLAGS_JOBS" != "" ]]; then
-  # user defined number of jobs in MAKEFLAGS, re-use that number
-  COMPILE_JOBS=$MAKEFLAGS_JOBS
-elif [[ $OSTYPE = darwin* ]]; then
-   # We only support modern Mac machines, they are at least using
-   # hyperthreaded dual-core CPU.
-   COMPILE_JOBS=4
-else
-   CPU_CORES=`grep -c ^processor /proc/cpuinfo`
-   if [[ "$CPU_CORES" -gt 1 ]]; then
-       COMPILE_JOBS=$CPU_CORES
-       if [[ "$COMPILE_JOBS" -gt 8 ]]; then
-           # Safety net.
-           COMPILE_JOBS=8
-       fi
-   fi
-fi
+#if [[ "$MAKEFLAGS" != "" ]]; then
+#  MAKEFLAGS_JOBS=$(echo $MAKEFLAGS | egrep -o '\-j[0-9]+' | egrep -o '[0-9]+')
+#fi
+
+#if [[ "$MAKEFLAGS_JOBS" != "" ]]; then
+#  # user defined number of jobs in MAKEFLAGS, re-use that number
+#  COMPILE_JOBS=$MAKEFLAGS_JOBS
+#elif [[ $OSTYPE = darwin* ]]; then
+#   # We only support modern Mac machines, they are at least using
+#   # hyperthreaded dual-core CPU.
+#   COMPILE_JOBS=4
+#else
+#   CPU_CORES=`grep -c ^processor /proc/cpuinfo`
+#   if [[ "$CPU_CORES" -gt 1 ]]; then
+#       COMPILE_JOBS=$CPU_CORES
+#       if [[ "$COMPILE_JOBS" -gt 8 ]]; then
+#           # Safety net.
+#           COMPILE_JOBS=8
+#       fi
+#   fi
+#fi
 
 until [ -z "$1" ]; do
     case $1 in
@@ -78,10 +78,10 @@
 EOF
 
     echo "Do you want to continue (y/n)?"
-    read continue
-    if [[ "$continue" != "y" ]]; then
-        exit 1
-    fi
+#    read continue
+#    if [[ "$continue" != "y" ]]; then
+#        exit 1
+#    fi
     echo
     echo
 fi