aboutsummaryrefslogtreecommitdiff
#!/bin/sh

# GNU Guix --- Functional package management for GNU
# Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
# Copyright © 2017 Eric Bavier <bavier@cray.com>
#
# This file is part of GNU Guix.
#
# GNU Guix 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.
#
# GNU Guix 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 GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

# Usage: ./pre-inst-env COMMAND ARG...
#
# Run COMMAND in a pre-installation environment.  Typical use is
# "./pre-inst-env guix build hello".

# By default we may end up with absolute directory names that contain '..',
# which get into $GUILE_LOAD_PATH, leading to '..' in the module file names
# recorded by Guile.  To avoid that, make sure we get a real absolute
# directory name.  Additionally, use '-P' to get the canonical directory name
# so that Guile's 'relative' %file-port-name-canonicalization can actually
# work (see <http://bugs.gnu.org/17935>.)
abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd -P`"
abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd -P`"

GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH

# Define $PATH so that `guix' and friends are easily found.

PATH="$abs_top_builddir/scripts:$abs_top_builddir:$PATH"
export PATH

# The daemon invokes 'guix'; tell it which one to use.
GUIX="$abs_top_builddir/scripts/guix"
export GUIX

# Define $GUIX_UNINSTALLED to prevent `guix' from
# prepending @guilemoduledir@ to the Guile load paths.

GUIX_UNINSTALLED=1
export GUIX_UNINSTALLED

exec "$@"
+0100'>2022-02-14restore chromium supportWojtek Kosior 2022-02-09make resource dependency specifier an objectWojtek Kosior 2022-02-09adapt to changes in file path format...From now on we assume Hydrilla serves file contents at 'file/sha256/<hash>' instead of 'file/sha256-<hash>'. With this commit we also stop using the "hash_key" property internally. Wojtek Kosior 2022-01-29make Haketilo buildable again (for Mozilla)...How cool it is to throw away 5755 lines of code... Wojtek Kosior 2022-01-27facilitate querying IndexedDB for script files of resource and its dependenciesWojtek Kosior 2022-01-26add new root content scriptWojtek Kosior 2022-01-22add a mapping/resources installation dialogWojtek Kosior 2022-01-18facilitate caching repository responses in content scriptsWojtek Kosior 2022-01-18facilitate making CORS-agnostic requests through background scriptWojtek Kosior 2022-01-15make blocking rules queryable in pattern tree just as mappings areWojtek Kosior 2022-01-04fix license promise typoWojtek Kosior 2022-01-03improve and test the dafult policy dialog...This commit also fixes some bugs that manifested themselves spuriously. Wojtek Kosior 2021-12-31utilize Pattern Tree to decide the policy to use and modify HTTP response hea......This commit also enhances the build script so that preprocessor conditionals can now use operators '&&' and '||'. The features being developed are not yet included in the actual Haketilo build. Some of the new source files contain similar functionality to other ones already existing in the source tree. At some point the latter will be removed. Wojtek Kosior 2021-12-27facilitate egistering dynamic content scripts with mappings dataWojtek Kosior 2021-12-22reworked build system; added missing license noticesWojtek Kosior 2021-12-14facilitate broadcasting messages to different execution contexts within the w...Wojtek Kosior 2021-12-08facilitate initialization of IndexedDB for use by HaketiloWojtek Kosior 2021-12-03merge `master` (license notices) and `koszko` (v1.0 development)Wojtek Kosior 2021-12-01facilitate testing javascript functions...Haketilo's .js files can now be loaded together with their dependencies and executed on a page opened in a selenium-driven Firefox instance. Wojtek Kosior 2021-11-20replace cookies with synchronous XmlHttpRequest as policy smuggling method....Note: this breaks Mozilla port of Haketilo. Synchronous XmlHttpRequest doesn't work as well there. This will be fixed with dynamically-registered content scripts later. Wojtek Kosior 2021-10-30Fix license notices on JS and SH files...Other files have been left, as no model notice is available jahoti