2022-10-22 12:14:26 +02:00
|
|
|
#%Module######################################################################
|
|
|
|
##
|
|
|
|
## Project Module
|
|
|
|
##
|
|
|
|
proc ModulesHelp { } {
|
|
|
|
puts stderr "\tThe TGFS-CG Project Module\n"
|
|
|
|
puts stderr "\tThis module loads PATHs and variables for accessing Verilator."
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#set distro [exec /bin/lsb_release -i -s]
|
|
|
|
#if { $distro == "CentOS" && ![info exists ::env(PROJECT)] && ![info exists ::env(PCP_DIR)] } {
|
|
|
|
# puts stderr "Don't forget to execute 'scl enable devtoolset-7 bash'"
|
|
|
|
#}
|
|
|
|
|
2023-01-05 16:17:49 +01:00
|
|
|
if {![info exists ::env(PROJECT)] && [file exists $::env(HOME)/.sdkman/candidates/java/17.0.2-open/] != 1} {
|
|
|
|
puts stderr "Please install java via 'sdk install java 17.0.2-open'!"
|
|
|
|
prereq java/17.0.2
|
2022-10-22 12:14:26 +02:00
|
|
|
} else {
|
2023-01-05 16:17:49 +01:00
|
|
|
prepend-path PATH $::env(HOME)/.sdkman/candidates/java/17.0.2-open/bin
|
2022-10-22 12:14:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
setenv PROJECT RDL-Editor
|
|
|
|
|