dotfiles/setup/commands/install-scripts.rkt

30 lines
1 KiB
Racket
Raw Normal View History

2023-05-04 23:19:34 +02:00
#lang racket
(require "../common.rkt")
(provide run)
2023-05-07 15:53:25 +02:00
(define-logging mklink
2023-05-13 13:28:36 +02:00
(λ (from to)
(with-handlers ([exn:fail? (const #f)]) (delete-file to))
(make-file-or-directory-link (normalize-path from) to)))
2023-05-04 23:19:34 +02:00
2023-05-07 15:53:25 +02:00
(define (run)
2023-05-13 13:28:36 +02:00
(define (bin-path bin)
(build-path (output-bin-path) "bin" bin))
2023-05-04 23:19:34 +02:00
;; Symlink interpreted scripts
2023-05-13 13:28:36 +02:00
(mklink "scripts/map-touch-display.rkt" (bin-path "map-touch-display"))
(mklink "scripts/playvid.rkt" (bin-path "playvid"))
(mklink "scripts/start-joshuto.sh" (bin-path "start-joshuto"))
(mklink "scripts/startriver.sh" (bin-path "startriver"))
(mklink "scripts/swank-repl.ros" (bin-path "swank-repl"))
(mklink "scripts/update-nvim-plugins.rkt" (bin-path "update-nvim-plugins"))
(mklink "scripts/withjava.sh" (bin-path "withjava"))
2023-05-04 23:19:34 +02:00
;; Compile Zig scripts
2023-05-07 15:53:25 +02:00
(install-zig "scripts/mzteinit")
(install-zig "scripts/openbrowser")
(install-zig "scripts/playtwitch")
(install-zig "scripts/prompt")
(install-zig "scripts/randomwallpaper")
(install-zig "scripts/vinput")
2023-05-04 23:19:34 +02:00
null)