From 0a7b302f04433f7e45ac694defa12d3ddda9e926 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 17 Apr 2020 09:32:06 -0400 Subject: Add executable script. --- .gitignore | 1 + Makefile.am | 3 +++ configure.ac | 1 + scripts/lisparuga.in | 25 +++++++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 scripts/lisparuga.in diff --git a/.gitignore b/.gitignore index 2de267f..2c43057 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ build-aux/ /configure /pre-inst-env *.go +/scripts/lisparuga diff --git a/Makefile.am b/Makefile.am index a673fef..5a57b33 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,9 @@ SUFFIXES = .scm .go moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION) godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache +bin_SCRIPTS = \ + scripts/lisparuga + SOURCES = \ lisparuga/config.scm \ lisparuga/inotify.scm \ diff --git a/configure.ac b/configure.ac index fbf713a..1de1a28 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,7 @@ AM_SILENT_RULES([yes]) AC_PATH_PROG([GUILE], [guile]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) +AC_CONFIG_FILES([scripts/lisparuga], [chmod +x scripts/lisparuga]) GUILE_PKG([3.0 2.2]) GUILE_PROGS diff --git a/scripts/lisparuga.in b/scripts/lisparuga.in new file mode 100644 index 0000000..e70cdc1 --- /dev/null +++ b/scripts/lisparuga.in @@ -0,0 +1,25 @@ +#!@GUILE@ --no-auto-compile +-*- scheme -*- +!# + +;;; Lisparuga --- Static site generator for GNU Guile +;;; Copyright © 2015 David Thompson +;;; +;;; This file is part of Lisparuga. +;;; +;;; Lisparuga is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or +;;; (at your option) any later version. +;;; +;;; Lisparuga is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with Lisparuga. If not, see . + +(use-modules (lisparuga)) + +(launch-lisparuga #:window-width 640 #:window-height 480) -- cgit v1.2.3