* updated tzdata (2024a -> 2024b)
[t2sde.git] / package / java / java-dirtree / java-jdk-conf.in
blob3dfcf32d4647f9d787c0a3989445016399a97ba2
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/java-dirtree/java-jdk-conf.in
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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
14 set_confopt
16 if [ "$1" = "jre" ]; then
17         hook_add postmake 5 'jre_populate_profile'
18 else
19         hook_add postmake 5 'jdk_populate_profile'
22 jdk_populate_profile() {
23         cat <<-EOT > $root/`pkgprefix sysconfdir java-dirtree`/$pkg.in
24         JAVA_HOME=/$prefix
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
30         EOT
33 jre_populate_profile() {
34         cat <<-EOT > $root/`pkgprefix sysconfdir java-dirtree`/$pkg.in
35         JRE_HOME=/$prefix
36         CLASSPATH=$libdir:\$CLASSPATH
37         MANPATH=$mandir:\$MANPATH
38         PATH=$bindir:\$PATH
40         export JRE_HOME CLASSPATH MANPATH PATH
41         EOT