Made Makefile #rash complient

This commit is contained in:
2026-08-17 16:37:48 +02:00
parent d2e2298731
commit 6834b3d2ac
3 changed files with 62 additions and 41 deletions
+12 -5
View File
@@ -1,10 +1,14 @@
#lang racket
#lang rash
(require racket-makefile
(require racket-makefile/rash
package-zipper
net/sendurl
)
(define doc-target "docs/git.html")
(define doc-src "scribblings/git.scrbl")
(makefile git-cli
(target all
(displayln "use (make clean) or (make package)")
@@ -17,6 +21,10 @@
(for-each (λ (f) (displayln f) (rm-f f)) (list-files "scribblings" #px"[.](css|js|html)$")))
)
(target version
(displayln
(git 'next-version)))
(target package
(deps clean)
(zip-package))
@@ -24,9 +32,6 @@
(target zip
(deps package))
(define doc-target "docs/git.html")
(define doc-src "scribblings/git.scrbl")
(target doc-target
(deps doc-src)
(unless (directory-exists? "docs")
@@ -49,3 +54,5 @@
)
(target setup
(raco '(setup git)))
)
+14
View File
@@ -0,0 +1,14 @@
#lang racket/base
(require
"main.rkt"
"private/utils.rkt"
racket/string)
(define (git-cli)
(let ((re #px"\s+"))
(let loop ()
(let ((cmd (string-trim (input-prompt "git>"))))
+1 -1
View File
@@ -2,7 +2,7 @@
(define collection "git-cli")
(define pkg-desc "Command-line-like Git operations for Racket, interface to the git cli command")
(define version "0.4.2")
(define version "0.4.4")
(define pkg-authors '("Hans Dijkema"))
(define license 'MIT)