summaryrefslogtreecommitdiff
path: root/java/netbeans/files/patch-platform-lib_nbexec
blob: adbcbb99ff21828e265999c867f2da9472990488 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- platform/lib/nbexec.orig	2013-10-30 09:45:15.000000000 +0100
+++ platform/lib/nbexec	2013-10-30 09:45:20.000000000 +0100
@@ -213,7 +213,7 @@
 # if the Java option for heap dump on OOME is supported enable it
 if "${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError -cp "${progdir}/boot.jar" org.netbeans.NbExecJavaStartTry > /dev/null 2>&1 ; then
    jargs="$jargs -XX:+HeapDumpOnOutOfMemoryError"
-   if [ -z "`echo $jargs | grep -- "-XX:HeapDumpPath="`" ] ; then
+   if [ -z "`echo $jargs | %%GREP%% -- "-XX:HeapDumpPath="`" ] ; then
       jargs="$jargs -XX:HeapDumpPath=\"${userdir}/var/log/heapdump.hprof\""
    fi
    # rename old heap dump to .old
@@ -244,7 +244,7 @@
         if [ "`echo "${dir}"/*.$ex`" != "${dir}/*.$ex" ] ; then
             for x in "${dir}"/*.$ex ; do
                 subx=`basename "$x"`
-                if [ -z "`echo "$paths" | egrep "$subpath$subx"`" ] ; then
+                if [ -z "`echo "$paths" | %%GREP%% "$subpath$subx"`" ] ; then
                     if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                     cp="$cp$x"
                     if [ ! -z "$paths" ] ; then paths="$paths:" ; fi