spl/install.spl

21 lines
655 B
Text
Raw Normal View History

2023-02-25 11:37:07 +01:00
"to be run with `cargo run install.spl`.";
2023-04-08 17:59:04 +02:00
func main { mega | with args ;
2023-02-25 11:37:07 +01:00
[ "sudo" "mkdir" "/usr/lib/spl" ] command-wait;
[ "sh" "-c" "sudo cp *.spl /usr/lib/spl" ] command-wait;
[ "cargo" "build" "--release" ] command-wait;
2023-03-06 17:06:01 +01:00
[ "sudo" "rm" "/bin/spl" ] command-wait;
2023-02-25 11:37:07 +01:00
[ "sudo" "cp" "target/release/spl" "/bin" ] command-wait;
"make sure its executable";
[ "sudo" "chmod" "a+rx" "/bin/spl" ] command-wait;
2023-02-25 11:42:45 +01:00
"add vim syntax";
2023-02-25 12:05:54 +01:00
[ "sudo" "cp" "spl.vim" "/usr/share/vim/vim90/syntax/" ] command-wait;
[ "sudo" "cp" "spl.vim" "/usr/share/nvim/runtime/syntax/" ] command-wait;
2023-02-25 11:42:45 +01:00
2023-02-25 11:37:07 +01:00
"SPL is now installed!" println
0
}