Skip to content

Commit

Permalink
Rewrite using newer constructs
Browse files Browse the repository at this point in the history
  • Loading branch information
shirok committed Jul 8, 2024
1 parent df49764 commit e08dee8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/gauche/package/commands.scm
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
[reconf "r|reconfigure" ? "uses the same configure options as before"]
[clean "clean" ? "clean up the build directory after installation"]
[sudo "S|install-as=s{USER}" #f ? "sudo to {USER} when installing"])
(unless (= (length args) 1) (usage-self))
(unless (length=? args 1) (usage-self))
(gauche-package-build (car args)
:config *config*
:dry-run dry-run :install #t :clean clean
Expand All @@ -194,7 +194,7 @@
[copts "C|configure-options=s{OPTIONS}" #f
? "passes {OPTIONS} to ./configure. overrides -r."]
[reconf "r|reconfigure" ? "uses the same configure options as before."])
(unless (= (length args) 1) (usage-self))
(unless (length=? args 1) (usage-self))
(gauche-package-build (car args)
:config *config*
:dry-run dry-run
Expand Down Expand Up @@ -413,7 +413,7 @@
(if compile-only args (cdr args))
:output output))]
[compile-only
(unless (= (length args) 1) (usage-self))
(unless (length=? args 1) (usage-self))
(gauche-package-compile (car args)
:dry-run dry-run :verbose verbose
:srcdir srcdir
Expand All @@ -423,7 +423,7 @@
:cc compiler
:cppflags cppflags :cflags cflags)]
[else
(when (<= (length args) 1) (usage-self))
(when (length<=? args 1) (usage-self))
(gauche-package-compile-and-link (car args) (cdr args)
:dry-run dry-run :verbose verbose
:srcdir srcdir
Expand Down

0 comments on commit e08dee8

Please sign in to comment.