nixpkgs/pkgs/applications/editors/netbeans/path.patch
Bryan Gardiner eaddd4e5e8
netbeans: additional patching
- Patches a new awk call in the Netbeans 8 launcher, to fix a warning
  on startup:

    /nix/store/...-netbeans-8.0.2/netbeans/platform/lib/nbexec: line 201:
    /usr/bin/awk: No such file or directory

- Patches a bunch of sh/perl/python shebangs.
2015-09-29 22:03:38 -07:00

12 lines
554 B
Diff

--- a/netbeans/platform/lib/nbexec 2015-09-29 21:26:39.282600903 -0700
+++ b/netbeans/platform/lib/nbexec 2015-09-29 21:26:58.977697858 -0700
@@ -198,7 +198,7 @@
SunOS*) awk=nawk ;;
*) awk=awk ;;
esac
- jdk_version=$("${jdkhome}/bin/java" -version 2>&1 | "/usr/bin/${awk}" -F '"' '/version/ {print substr($2, 1, 3)}')
+ jdk_version=$("${jdkhome}/bin/java" -version 2>&1 | "@AWK@" -F '"' '/version/ {print substr($2, 1, 3)}')
if [ "$jdk_version" = "1.7" ] ; then
jargs="$jargs $launcher_args"
fi