summaryrefslogtreecommitdiff
path: root/env.in
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-06-16 23:44:59 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-16 23:44:59 +0200
commit9f393485097f63e5c7462809b4a14f4ff7afeb6c (patch)
tree8c1abeb084b3001f720b5ce1f528c40d38f2431e /env.in
parentebf5dd3b3162e37fc88bfae1b6dd7e14d7524fb7 (diff)
Add autotools support and add manual draft.
* .gitignore: New file. Ignore generated files. * Makefile.am, VERSION, aclocal.m4, bootstrap.sh, build-aux/generate-images.scm, build-aux/install-sh, build-aux/mdate-sh, build-aux/missing, build-aux/test-driver, build-aux/texinfo.tex, configure.ac, doc/fdl-1.3.texi, doc/images/boring-triangles.svg.scm, doc/images/hline.svg.scm, doc/images/line.svg.scm, doc/images/modifiers.svg.scm, doc/images/polygon.svg.scm, doc/images/polyline.svg.scm, doc/images/polyline2.svg.scm, doc/images/vline.svg.scm, doc/picture-language.texi, env.in, guile.am: New files.
Diffstat (limited to 'env.in')
-rw-r--r--env.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/env.in b/env.in
new file mode 100644
index 0000000..3e6becb
--- /dev/null
+++ b/env.in
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# as published by the Free Software Foundation; either version 3 of
+# the License, or (at your option) any later version.
+#
+# This library 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library. If not, see
+# <http://www.gnu.org/licenses/>.
+
+GUILE_LOAD_PATH=@abs_top_srcdir@:$GUILE_LOAD_PATH
+if test "@abs_top_srcdir@" != "@abs_top_builddir@"; then
+ GUILE_LOAD_PATH=@abs_top_builddir@:$GUILE_LOAD_PATH
+fi
+GUILE_LOAD_COMPILED_PATH=@abs_top_builddir@:$GUILE_LOAD_PATH
+PATH=@abs_top_builddir@/bin:$PATH
+
+export GUILE_LOAD_PATH
+export GUILE_LOAD_COMPILED_PATH
+export PATH
+export srcdir=@abs_top_srcdir@
+
+exec "$@"