mirror of
https://github.com/Minres/RDL-Editor.git
synced 2024-12-22 07:28:02 +01:00
25 lines
813 B
Puppet
25 lines
813 B
Puppet
#%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'"
|
|
#}
|
|
|
|
if {![info exists ::env(PROJECT)] && [file exists $::env(HOME)/.sdkman/candidates/java/11.0.9.hs-adpt/] != 1} {
|
|
puts stderr "Please install java via 'sdk install java 11.0.9.hs-adpt'!"
|
|
prereq java/11.0.9
|
|
} else {
|
|
prepend-path PATH $::env(HOME)/.sdkman/candidates/java/11.0.9.hs-adpt/bin
|
|
}
|
|
|
|
setenv PROJECT RDL-Editor
|
|
|