AboutSummaryRefsLogTreeCommitDiffStats
path: root/src
diff options
context:
space:
mode:
authorDale Mellor <mcron-lsfnyl@rdmp.org>2020-06-08 08:45:14 +0100
committerDale Mellor <mcron-lsfnyl@rdmp.org>2020-06-08 08:45:14 +0100
commitf700f299d41c8f0ecb953f1e02b8fbd432efef3d (patch)
treeff6a93826d852a792768bf8139c87fa852ffb514 /src
parentbc18db895064d9d0516b784ecac5270282c21d30 (diff)
parent289e4c505e52402e5dfba08d57f2ba1d61a90bf3 (diff)
downloadmcron-f700f299d41c8f0ecb953f1e02b8fbd432efef3d.tar.gz
mcron-f700f299d41c8f0ecb953f1e02b8fbd432efef3d.tar.bz2
mcron-f700f299d41c8f0ecb953f1e02b8fbd432efef3d.zip
Merge.
Diffstat (limited to 'src')
-rw-r--r--src/cron.in8
-rw-r--r--src/crontab.in6
-rw-r--r--src/mcron.in8
3 files changed, 14 insertions, 8 deletions
diff --git a/src/cron.in b/src/cron.in
index 97d49b4..25ad273 100644
--- a/src/cron.in
+++ b/src/cron.in
@@ -2,7 +2,9 @@
-*- scheme -*-
!#
-(set! %load-path (cons "%modsrcdir%" %load-path))
-(set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path))
-(use-modules (mcron scripts cron))
+(unless (getenv "MCRON_UNINSTALLED")
+ (set! %load-path (cons "%modsrcdir%" %load-path))
+ (set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path)))
+
+(use-modules (mcron scripts cron))
(main)
diff --git a/src/crontab.in b/src/crontab.in
index fa31878..dad0dd2 100644
--- a/src/crontab.in
+++ b/src/crontab.in
@@ -2,6 +2,8 @@
-*- scheme -*-
!#
-(set! %load-path (cons "%modsrcdir%" %load-path))
-(set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path))
+(unless (getenv "MCRON_UNINSTALLED")
+ (set! %load-path (cons "%modsrcdir%" %load-path))
+ (set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path)))
+
((@ (mcron scripts crontab) main))
diff --git a/src/mcron.in b/src/mcron.in
index 4519ad0..268743c 100644
--- a/src/mcron.in
+++ b/src/mcron.in
@@ -2,7 +2,9 @@
-*- scheme -*-
!#
-(set! %load-path (cons "%modsrcdir%" %load-path))
-(set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path))
-(use-modules (mcron scripts mcron))
+(unless (getenv "MCRON_UNINSTALLED")
+ (set! %load-path (cons "%modsrcdir%" %load-path))
+ (set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path)))
+
+(use-modules (mcron scripts mcron))
(main)