mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 18:30:58 +00:00
0f71b02fd7
Made a few miscellaneous cleanups and enhancements to builtins and changed all the GIB scripts in CVS to reflect the new naming conventions.
27 lines
397 B
Text
27 lines
397 B
Text
global ln
|
|
|
|
ln.invoke_f = {
|
|
local cvar
|
|
cvar = ${ln.cvar.$0}
|
|
if ($argc == 1) {
|
|
echo "\"", $0, "\" is \"", $$cvar, "\""
|
|
return
|
|
}
|
|
set $cvar $1
|
|
}
|
|
|
|
function "ln" {
|
|
if ($argc != 3) {
|
|
echo "usage: ln cvar cvar_alias"
|
|
return
|
|
}
|
|
ln.cvar.$2 = $1
|
|
function $2 ${ln.invoke_f}
|
|
export $2
|
|
}
|
|
|
|
function::export ln
|
|
|
|
// QuakeForge qwcl
|
|
ln "in_mouse_amp" "sensitivity"
|
|
ln "in_grab" "_windowed_mouse"
|