Skip to content

Commit

Permalink
chore: dismiss Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mnacamura committed Feb 6, 2024
1 parent d03b9f9 commit 14e6ae2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Makefile

This file was deleted.

9 changes: 9 additions & 0 deletions build.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Commands

(fn lint []
"Lint Vim scripts."
(let [out io.stderr
cmd "vint **/*.vim"]
(out:write "Run " cmd "\n")
(os.execute cmd)))

(fn build-lua-keywords []
"Build syntax/fennel-lua.vim by scraping Lua reference manuals."
(let [target "syntax/fennel-lua.vim"
Expand Down Expand Up @@ -264,9 +271,11 @@
(fn main []
(let [command (. arg 1)]
(match command
:lint (lint)
:lua-keywords (build-lua-keywords)
_ (usage "<command> [<arg> ...]"
"Commands:"
" lint\tLint Vim scripts."
" lua-keywords\tBuild syntax/fennel-lua.vim by scraping Lua reference manuals."))))

(main)

0 comments on commit 14e6ae2

Please sign in to comment.