summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2020-04-17 09:32:06 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2020-04-17 09:32:06 -0400
commit0a7b302f04433f7e45ac694defa12d3ddda9e926 (patch)
tree0e872c8f08d18ffa1909892a1740ea85964c51f1
parentf7d9a89db443c8449c5f64a1ecf92a9b3abb6fdf (diff)
Add executable script.
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--scripts/lisparuga.in25
4 files changed, 30 insertions, 0 deletions
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 <davet@gnu.org>
+;;;
+;;; 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 <http://www.gnu.org/licenses/>.
+
+(use-modules (lisparuga))
+
+(launch-lisparuga #:window-width 640 #:window-height 480)