From a123965c0cd48acbdbda58206cdc9bc8d8f27086 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 26 Jul 2015 15:18:19 -0400 Subject: Remove hardcoded Guile executable path. * scripts/haunt: Now a build artifact. * scripts/haunt.in: New file. * configure.ac: Pre-process haunt.in. --- .gitignore | 1 + configure.ac | 1 + scripts/haunt | 24 ------------------------ scripts/haunt.in | 24 ++++++++++++++++++++++++ 4 files changed, 26 insertions(+), 24 deletions(-) delete mode 100755 scripts/haunt create mode 100755 scripts/haunt.in diff --git a/.gitignore b/.gitignore index 47e8631..e38ff09 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ .#* /haunt/config.scm /example/site/ +/scripts/haunt diff --git a/configure.ac b/configure.ac index 4281e57..e60e097 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,7 @@ AM_SILENT_RULES([yes]) AC_CONFIG_FILES([Makefile haunt/config.scm]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) +AC_CONFIG_FILES([scripts/haunt], [chmod +x scripts/haunt]) GUILE_PROGS([2.0.11]) diff --git a/scripts/haunt b/scripts/haunt deleted file mode 100755 index f101003..0000000 --- a/scripts/haunt +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/guile --no-auto-compile --*- scheme -*- -!# -;;; Haunt --- Static site generator for GNU Guile -;;; Copyright © 2015 David Thompson -;;; -;;; This file is part of Haunt. -;;; -;;; Haunt 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. -;;; -;;; Haunt 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 Haunt. If not, see . - -(use-modules (haunt ui)) - -(apply haunt-main (command-line)) diff --git a/scripts/haunt.in b/scripts/haunt.in new file mode 100755 index 0000000..7206036 --- /dev/null +++ b/scripts/haunt.in @@ -0,0 +1,24 @@ +#!@GUILE@ --no-auto-compile +-*- scheme -*- +!# +;;; Haunt --- Static site generator for GNU Guile +;;; Copyright © 2015 David Thompson +;;; +;;; This file is part of Haunt. +;;; +;;; Haunt 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. +;;; +;;; Haunt 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 Haunt. If not, see . + +(use-modules (haunt ui)) + +(apply haunt-main (command-line)) -- cgit v1.2.3