blob: 0d6e2d55de87fe4c641ddbc43cbd7ee919a3cbf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /usr/bin/env guile
!#
(import (ice-9 match))
(define (prepend-path-environment! name . values)
(setenv name (string-join (append values
(if (getenv name)
(string-split (getenv name) #\:)
'()))
":")))
(define %source-dir
(dirname (current-filename)))
(prepend-path-environment! "GUILE_LOAD_PATH" %source-dir)
(prepend-path-environment! "GUILE_LOAD_COMPILED_PATH" %source-dir)
(match (command-line)
((_ command args ...)
(apply execlp command command args)))
|