将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名 改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为 nuance,并同步更新脚本内部引用与 README 路径。 Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
8 lines
558 B
Tcsh
8 lines
558 B
Tcsh
#!/bin/csh
|
|
|
|
set PLATFORM=`hostname | perl -ne 'if (/AC-/) {exec "echo aachen_linux"} elsif (/ac-llu/) {exec "echo aachen_windows"} elsif (/ac-nb-llu/) {exec "echo aachen_windows"} elsif (/xena|cvshost|bn-|wa-|grid-/) {exec "echo burlington_linux"} elsif (/neptune/) {exec "echo home_windows"} else {exec "echo unknown"}'`
|
|
# it must return some non-empty string for unknown hostnames,
|
|
# otherwise it makes if statement be wrong for unknown hostnames:
|
|
# if ($PLATFORM == 'somename')
|
|
# when $PLATFORM is empty string, there would be nothing to the left of ==.
|