Skip to content

Instantly share code, notes, and snippets.

@Pinjontall94
Created May 2, 2025 21:51
Show Gist options
  • Select an option

  • Save Pinjontall94/4d6e5d8fb46ddba8112c640c6014159f to your computer and use it in GitHub Desktop.

Select an option

Save Pinjontall94/4d6e5d8fb46ddba8112c640c6014159f to your computer and use it in GitHub Desktop.
sconfig.al
; SPDX-FileCopyrightText: 2025 Sammi Johnson <[email protected]>
;
; SPDX-License-Identifier: AGPL-3.0-or-later
;; Example metaconfig for Guile autotools projects
;; Usage:
;; Hand to sconfig/ac to construct an ac obj, then either:
;; REPL:
;; (ac-obj 'output "filename")
;; SHELL:
;; $ sconfig sconfig.al filename
(list 'init (list "project-name" "0.0.1" "[email protected]")
'config (list 'srcdir "project.scm"
'aux-dir "build-aux"
'macro-dirs "m4"
'files (list "Makefile"
(list "pre-inst-env" "chmod +x pre-inst-env")
(list "scripts/project" "chmod +x scripts/project")))
'programs (list 'guile-pkg (list "3.0")
'guile-progs))
;; also valid
;; '(init ("project-name" "0.0.1" "[email protected]")
;; config (srcdir "project.scm"
;; aux-dir "build-aux"
;; macro-dirs "m4"
;; files ("Makefile"
;; ("pre-inst-env" "chmod +x pre-inst-env")
;; ("scripts/project" "chmod +x scripts/project")))
;; programs (guile-pkg ("3.0")
;; guile-progs))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment