instow

:)
git clone https://git.sr.ht/~ashymad/instow
Log | Files | Refs | LICENSE

commit 20d218e6e62eff7db086afa6a37492c75e31af0a
parent 7ecebb2199e937c9fad8912a7d011ceecd1d414a
Author: Ashymad <szymon.mikulicz@posteo.net>
Date:   Wed, 25 Mar 2026 00:18:48 +0100

Use autogen if available

Diffstat:
Msrc/main.janet | 8++++++--
Msrc/tools.janet | 1+
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main.janet b/src/main.janet @@ -117,13 +117,17 @@ (file/file-exists? "project.janet") (set state :build/jpm) (utils/some? (libc/glob "*.pro")) (set state :conf/qmake) (file/file-exists? "CMakeLists.txt") (set state :conf/cmake) - (file/file-exists? "configure.ac") (set state :conf/autotools) + (file/file-exists? "autogen.sh") (set state :conf/autogen) + (file/file-exists? "configure.ac") (set state :conf/autoreconf) (file/file-exists? "meson.build") (set state :conf/meson) (errexit "Unable to auto-detect the build system")) - :conf/autotools + :conf/autoreconf (checkrun :conf/configure :autoreconf "-vi") + :conf/autogen + (checkrun :conf/configure :autogen) + :conf/configure (checkrun :build/make :configure (stropt "--prefix" prefix)) diff --git a/src/tools.janet b/src/tools.janet @@ -7,6 +7,7 @@ :cmake ["cmake"] :qmake ["qmake" "qmake6"] :configure ["./configure"] + :autogen ["./autogen.sh"] :autoreconf ["autoreconf"] :jpm ["jpm"] :go ["go"]