Browse Source

shebang

master
Jack L. Frost 6 years ago
parent
commit
010e9dc998
  1. 2
      config.mk.sh
  2. 1
      make.sh
  3. 2
      userrc.in

2
config.mk.sh

@ -5,3 +5,5 @@ LOGDIR=${LOGDIR:-"/tmp/userrc"}
BINDIR=${BINDIR:-"${PREFIX}/bin"}
CONFDIR=${CONFDIR:-"${PREFIX}/etc"}
CONFIG=${CONFIG:-"${CONFDIR}/userrc.conf"}
BASH=${BASH:="/usr/bin/bash"}

1
make.sh

@ -9,6 +9,7 @@ set_vars() {
sed -r \
-e "s%@CONFIG@%${CONFIG}%" \
-e "s%@LOGDIR@%${LOGDIR}%" \
-e "s%@BASH@%${BASH}%" \
< "$i".in > "$i"
done
}

2
userrc.in

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!@BASH@
msg() { printf '%s\n' "$*"; }
err() { printf '%s\n' "$*" >&2; }

Loading…
Cancel
Save