pre-inst-env.in 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
  3. #
  4. # This file is part of GNU Mcron.
  5. #
  6. # GNU Mcron is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # GNU Mcron is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU Mcron. If not, see <http://www.gnu.org/licenses/>.
  18. abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd`"
  19. abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd`"
  20. GUILE_LOAD_COMPILED_PATH="$abs_top_builddir/src${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
  21. GUILE_LOAD_PATH="$abs_top_builddir/src:$abs_top_srcdir/src${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
  22. export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
  23. PATH="$abs_top_builddir/bin:$PATH"
  24. export PATH
  25. # Define $MCRON_UNINSTALLED to prevent 'mcron' from prepending @moduledir@ to
  26. # the Guile load paths.
  27. MCRON_UNINSTALLED=1
  28. export MCRON_UNINSTALLED
  29. srcdir="@srcdir@"
  30. export srcdir
  31. exec "$@"