···1-commit c44347b3b813e209fff537b4d46d23430727a5e2
2-Author: Bernardo Meurer <meurerbernardo@gmail.com>
3-Date: Tue Feb 25 21:27:39 2020 -0800
45 makefile: correctly sed paths
6-7 The default Makefile for tlp makes a mess with catenating `DESTDIR` to
8 everything, but then not actualy using the catenated (_ prefixed)
9 variables to sed it's `.in` files.
10-11 This patch makes sure that it correctly sets the paths, taking `DESTDIR`
12 in account where it makes sense (e.g. /bin where we want $out/bin) but
13 not where it doesn't (/etc/tlp.conf should be just that).
14-15 The reason DESTDIR is used at all, as opposed to the more appropriate
16 PREFIX, is covered in the nix formula, and is (also) due to the Makefile
17 being a bit "different."
1819diff --git a/Makefile b/Makefile
20-index b5af74e..95122df 100644
21--- a/Makefile
22+++ b/Makefile
23-@@ -47,17 +47,17 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
2425 SED = sed \
26 -e "s|@TLPVER@|$(TLPVER)|g" \
···28- -e "s|@TLP_TLIB@|$(TLP_TLIB)|g" \
29- -e "s|@TLP_FLIB@|$(TLP_FLIB)|g" \
30- -e "s|@TLP_ULIB@|$(TLP_ULIB)|g" \
031+ -e "s|@TLP_SBIN@|$(_SBIN)|g" \
32+ -e "s|@TLP_TLIB@|$(_TLIB)|g" \
33+ -e "s|@TLP_FLIB@|$(_FLIB)|g" \
34+ -e "s|@TLP_ULIB@|$(_ULIB)|g" \
035 -e "s|@TLP_CONFUSR@|$(TLP_CONFUSR)|g" \
36 -e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
37- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
038+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
039 -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
40 -e "s|@TLP_RUN@|$(TLP_RUN)|g" \
41 -e "s|@TLP_VAR@|$(TLP_VAR)|g" \
···00012 makefile: correctly sed paths
3+4 The default Makefile for tlp makes a mess with catenating `DESTDIR` to
5 everything, but then not actualy using the catenated (_ prefixed)
6 variables to sed it's `.in` files.
7+8 This patch makes sure that it correctly sets the paths, taking `DESTDIR`
9 in account where it makes sense (e.g. /bin where we want $out/bin) but
10 not where it doesn't (/etc/tlp.conf should be just that).
11+12 The reason DESTDIR is used at all, as opposed to the more appropriate
13 PREFIX, is covered in the nix formula, and is (also) due to the Makefile
14 being a bit "different."
1516diff --git a/Makefile b/Makefile
17+index e9bbab4..6b66651 100644
18--- a/Makefile
19+++ b/Makefile
20+@@ -51,19 +51,19 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
2122 SED = sed \
23 -e "s|@TLPVER@|$(TLPVER)|g" \
···25- -e "s|@TLP_TLIB@|$(TLP_TLIB)|g" \
26- -e "s|@TLP_FLIB@|$(TLP_FLIB)|g" \
27- -e "s|@TLP_ULIB@|$(TLP_ULIB)|g" \
28+- -e "s|@TLP_BATD@|$(TLP_BATD)|g" \
29+ -e "s|@TLP_SBIN@|$(_SBIN)|g" \
30+ -e "s|@TLP_TLIB@|$(_TLIB)|g" \
31+ -e "s|@TLP_FLIB@|$(_FLIB)|g" \
32+ -e "s|@TLP_ULIB@|$(_ULIB)|g" \
33++ -e "s|@TLP_BATD@|$(_BATD)|g" \
34 -e "s|@TLP_CONFUSR@|$(TLP_CONFUSR)|g" \
35 -e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
36- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
37+- -e "s|@TLP_CONFREN@|$(TLP_CONFREN)|g" \
38+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
39++ -e "s|@TLP_CONFREN@|$(_CONFREN)|g" \
40 -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
41 -e "s|@TLP_RUN@|$(TLP_RUN)|g" \
42 -e "s|@TLP_VAR@|$(TLP_VAR)|g" \