2019-05-22 03:00:54 +01:00
|
|
|
# Gash --- Guile As SHell
|
|
|
|
# Copyright © 2018 Timothy Sample <samplet@ngyro.com>
|
|
|
|
#
|
|
|
|
# This file is part of Gash.
|
|
|
|
#
|
|
|
|
# Gash 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.
|
|
|
|
#
|
|
|
|
# Gash 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 Gash. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2018-11-08 19:53:55 +00:00
|
|
|
oil-link: oil.scm
|
|
|
|
if test -L oil-link; then unlink oil-link; fi
|
|
|
|
guix build --root=oil-link --file=oil.scm
|
|
|
|
|
|
|
|
oil: oil-link
|
|
|
|
rm -rf oil
|
|
|
|
cp -R -H oil-link "$@"
|
|
|
|
chmod -R u+w "$@"
|
|
|
|
|
Remove (almost) all references to Geesh.
gash/environment.scm: Remove file.
geesh/*: Move these files into the 'gash' folder and replace all
instances of the word 'geesh'.
scripts/geesh.in: Remove file.
HACKING, INSTALL, Makefile.am, configure.ac, guix.scm,
tests/bootstrap/bash-without-bash.scm, tests/spec/Makefile.am,
tests/spec/check-spec, tests/spec/oil.scm, tests/unit/*,
tools/coverage.in: Replace all instances of the word 'geesh'.
Co-authored-by: Jan Nieuwenhuizen <janneke@gnu.org>
2019-02-15 00:55:07 +00:00
|
|
|
oil/bin/gash: oil
|
2018-11-08 19:53:55 +00:00
|
|
|
echo "#!/bin/sh" > "$@"
|
Remove (almost) all references to Geesh.
gash/environment.scm: Remove file.
geesh/*: Move these files into the 'gash' folder and replace all
instances of the word 'geesh'.
scripts/geesh.in: Remove file.
HACKING, INSTALL, Makefile.am, configure.ac, guix.scm,
tests/bootstrap/bash-without-bash.scm, tests/spec/Makefile.am,
tests/spec/check-spec, tests/spec/oil.scm, tests/unit/*,
tools/coverage.in: Replace all instances of the word 'geesh'.
Co-authored-by: Jan Nieuwenhuizen <janneke@gnu.org>
2019-02-15 00:55:07 +00:00
|
|
|
echo "$(abs_top_builddir)/pre-inst-env gash "'"$$@"' >> "$@"
|
2018-11-08 19:53:55 +00:00
|
|
|
chmod a+x "$@"
|
|
|
|
|
Remove (almost) all references to Geesh.
gash/environment.scm: Remove file.
geesh/*: Move these files into the 'gash' folder and replace all
instances of the word 'geesh'.
scripts/geesh.in: Remove file.
HACKING, INSTALL, Makefile.am, configure.ac, guix.scm,
tests/bootstrap/bash-without-bash.scm, tests/spec/Makefile.am,
tests/spec/check-spec, tests/spec/oil.scm, tests/unit/*,
tools/coverage.in: Replace all instances of the word 'geesh'.
Co-authored-by: Jan Nieuwenhuizen <janneke@gnu.org>
2019-02-15 00:55:07 +00:00
|
|
|
check: oil/bin/gash ;
|
2018-11-08 19:53:55 +00:00
|
|
|
|
|
|
|
TEST_EXTENSIONS = .sh
|
|
|
|
SH_LOG_COMPILER = ./check-spec
|
|
|
|
|
|
|
|
TESTS = \
|
2020-03-28 02:33:51 +00:00
|
|
|
oil/spec/arith.test.sh \
|
2018-11-21 18:38:44 +00:00
|
|
|
oil/spec/case_.test.sh \
|
2019-11-29 05:03:42 +00:00
|
|
|
oil/spec/command-sub.test.sh \
|
2018-11-26 02:53:52 +00:00
|
|
|
oil/spec/errexit.test.sh \
|
2019-12-02 05:09:19 +00:00
|
|
|
oil/spec/glob.test.sh \
|
2018-11-21 19:58:49 +00:00
|
|
|
oil/spec/loop.test.sh \
|
2018-11-16 18:34:39 +00:00
|
|
|
oil/spec/quote.test.sh \
|
2018-11-15 19:40:09 +00:00
|
|
|
oil/spec/redirect.test.sh \
|
2018-11-11 02:21:47 +00:00
|
|
|
oil/spec/smoke.test.sh \
|
2018-11-16 18:53:43 +00:00
|
|
|
oil/spec/word-split.test.sh \
|
2019-08-20 22:15:57 +01:00
|
|
|
oil/spec/var-sub.test.sh \
|
|
|
|
oil/spec/var-op-strip.test.sh
|
2018-11-08 19:53:55 +00:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -rf oil
|
|
|
|
if test -L oil-link; then unlink oil-link; fi
|