1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# 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/>.
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 "$@"
oil/bin/gash: oil
echo "#!/bin/sh" > "$@"
echo "$(abs_top_builddir)/pre-inst-env gash "'"$$@"' >> "$@"
chmod a+x "$@"
check: oil/bin/gash ;
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = ./check-spec
TESTS = \
oil/spec/arith.test.sh \
oil/spec/case_.test.sh \
oil/spec/command-sub.test.sh \
oil/spec/errexit.test.sh \
oil/spec/glob.test.sh \
oil/spec/loop.test.sh \
oil/spec/quote.test.sh \
oil/spec/redirect.test.sh \
oil/spec/smoke.test.sh \
oil/spec/word-split.test.sh \
oil/spec/var-sub.test.sh \
oil/spec/var-op-strip.test.sh
clean-local:
rm -rf oil
if test -L oil-link; then unlink oil-link; fi
|