1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/java-dirtree/java-jdk-conf.in
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 pkgprefix -t java-dirtree
13 prefix=$(pkgprefix java-dirtree)/$pkg
16 if [ "$1" = "jre" ]; then
17 hook_add postmake 5 'jre_populate_profile'
19 hook_add postmake 5 'jdk_populate_profile'
22 jdk_populate_profile() {
23 cat <<-EOT > $root/`pkgprefix sysconfdir java-dirtree`/$pkg.in
25 CLASSPATH=$libdir:/$prefix/jre/lib:\$CLASSPATH
26 MANPATH=$mandir:\$MANPATH
27 PATH=$bindir:/$prefix/jre/bin:\$PATH
29 export JAVA_HOME CLASSPATH MANPATH PATH
33 jre_populate_profile() {
34 cat <<-EOT > $root/`pkgprefix sysconfdir java-dirtree`/$pkg.in
36 CLASSPATH=$libdir:\$CLASSPATH
37 MANPATH=$mandir:\$MANPATH
40 export JRE_HOME CLASSPATH MANPATH PATH