doc/example/tips-for-code-reuse/fooB/1.0
raw| 1 | #%Module###################### |
| 2 | ## |
| 3 | ## generic modulefile, |
| 4 | ## |
| 5 | ## This just sources the file common in the same directory |
| 6 | ## |
| 7 | ## Usage: |
| 8 | ## Just symlink this file to .generic in the directory with common, and |
| 9 | ## then make symlink to .generic for all versions of the app |
| 10 | |
| 11 | set moduledir [file dirname $ModulesCurrentModulefile] |
| 12 | source $moduledir/common |
| 13 |