20 lines
658 B
Text
20 lines
658 B
Text
"to be run with `cargo run install.spl`.";
|
|
|
|
func main { mega | with args ;
|
|
[ "sudo" "mkdir" "/usr/lib/spl" ] command-wait;
|
|
[ "sh" "-c" "sudo cp -r spl/* /usr/lib/spl" ] command-wait;
|
|
[ "cargo" "build" "--release" ] command-wait;
|
|
[ "sudo" "rm" "/bin/spl" ] command-wait;
|
|
[ "sudo" "cp" "target/release/spl" "/bin" ] command-wait;
|
|
|
|
"make sure its executable";
|
|
[ "sudo" "chmod" "a+rx" "/bin/spl" ] command-wait;
|
|
|
|
"add vim syntax";
|
|
[ "sudo" "cp" "spl.vim" "/usr/share/vim/vim90/syntax/" ] command-wait;
|
|
[ "sudo" "cp" "spl.vim" "/usr/share/nvim/runtime/syntax/" ] command-wait;
|
|
|
|
"SPL is now installed!" println
|
|
|
|
0
|
|
}
|