commit ce0e1c2
hovercats
·
2025-05-22 18:23:32 +0000 UTC
parent 8d16976
add global config instead of having configs inside script
M
rcpm
+3,
-5
1@@ -2,11 +2,9 @@
2
3 flag e +
4
5-# This will eventually get removed
6-RCPM_PATH=$PWD/repo
7-RCPM_CACHE=$HOME/var/rcpm/bin
8-RCPM_ROOT=/tmp/fs
9-RCPM_DB=/var/db/rcpm
10+# Assume we run locally if no global config is present
11+if (test ! -f /etc/rcpm.conf) . ./rcpm.conf
12+if not . /etc/rcpm.conf
13
14 if (~ $#RCPM_PATH 0) {
15 printf 'RCPM_PATH is not set\n'
+11,
-0
1@@ -0,0 +1,11 @@
2+#!/bin/rc
3+
4+flag e +
5+
6+RCPM_PATH=$PWD/repo
7+RCPM_CACHE=$HOME/var/rcpm/bin
8+RCPM_ROOT=/tmp/fs
9+RCPM_DB=/var/db/rcpm
10+
11+# Otherwise rcpm exists prematurly
12+status=()