/build-aux/missing
/build-aux/test-driver
/build-aux/texinfo.tex
+/mudsync/package-config.scm
mudsync/room.scm \
mudsync/run-game.scm \
mudsync/thing.scm \
+ mudsync/package-config.scm \
mudsync.scm
# TESTS = \
GUILE_PROGS
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([env], [chmod +x env])
+dnl Prepare a version of $datadir that does not contain references to
+dnl shell variables. (Borrowed from Sly, which borrowed from Guix...)
+package_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
+package_datadir="`eval eval echo $datadir | sed -e "s|NONE|$package_prefix|g"`"
+AC_SUBST([package_datadir])
+
+
+AC_CONFIG_FILES([Makefile mudsync/package-config.scm])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
AC_OUTPUT
+++ /dev/null
-#!/bin/sh
-
-## Also borrowed from guile-opengl, which is GPLv3+
-
-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
-
-exec "$@"
--- /dev/null
+;;; Mudsync --- Live hackable MUD
+;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
+;;;
+;;; This file is part of Mudsync.
+;;;
+;;; Mudsync 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.
+;;;
+;;; Mudsync 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 Mudsync. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (mudsync package-config)
+ #:export (%datadir
+ scope-datadir web-static-filepath
+
+ %mudsync-package-name %mudsync-version))
+
+(define %datadir
+ (or (getenv "MUDSYNC_DATADIR")
+ "@package_datadir@/@PACKAGE_NAME@"))
+
+(define (scope-datadir filename)
+ (string-append %datadir filename))
+
+(define (web-static-filepath filename)
+ (scope-datadir (string-append "/web-static" filename)))
+
+
+(define %mudsync-package-name
+ "@PACKAGE_NAME@")
+
+(define %mudsync-version
+ "@PACKAGE_VERSION@")
+
+;; (define %mudsync-bug-report-address
+;; "@PACKAGE_BUGREPORt")
+
+;; (define %mudsync-home-page-url
+;; "@PACKAGE_URL@")
+
# srt2vtt --- SRT to WebVTT converter
# Copyright © 2015 David Thompson <davet@gnu.org>
-# Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
+# Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
#
# srt2vtt is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
+MUDSYNC_DATADIR="$abs_top_builddir/data"
+export MUDSYNC_DATADIR
+
PATH="$abs_top_builddir/scripts:$PATH"
export PATH