Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 1407a77

Browse files
committed
Use @ for input file variable replacement
1 parent 784af62 commit 1407a77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MANPAGE = auto-inhibit.1
1010
all: auto-inhibit $(MANPAGE)
1111

1212
auto-inhibit: auto-inhibit.in
13-
sed -e "s/VERSION=/VERSION=$(VERSION)/" auto-inhibit.in > auto-inhibit
13+
sed -e "s/@VERSION/$(VERSION)/" auto-inhibit.in > auto-inhibit
1414
chmod +x auto-inhibit
1515

1616
$(MANPAGE): man/$(MANPAGE).pod

auto-inhibit.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
set -eu
66

7-
readonly VERSION=
7+
readonly VERSION=@VERSION
88

99
readonly CONFIG="${AUTO_INHIBIT_CONF:-/etc/auto-inhibit.conf}"
1010
readonly INHIBITOR="${AUTO_INHIBITOR:-$(command -v auto-inhibit)}"

0 commit comments

Comments
 (0)