···11-commit c44347b3b813e209fff537b4d46d23430727a5e2
22-Author: Bernardo Meurer <meurerbernardo@gmail.com>
33-Date: Tue Feb 25 21:27:39 2020 -0800
4152 makefile: correctly sed paths
66-33+74 The default Makefile for tlp makes a mess with catenating `DESTDIR` to
85 everything, but then not actualy using the catenated (_ prefixed)
96 variables to sed it's `.in` files.
1010-77+118 This patch makes sure that it correctly sets the paths, taking `DESTDIR`
129 in account where it makes sense (e.g. /bin where we want $out/bin) but
1310 not where it doesn't (/etc/tlp.conf should be just that).
1414-1111+1512 The reason DESTDIR is used at all, as opposed to the more appropriate
1613 PREFIX, is covered in the nix formula, and is (also) due to the Makefile
1714 being a bit "different."
18151916diff --git a/Makefile b/Makefile
2020-index b5af74e..95122df 100644
1717+index e9bbab4..6b66651 100644
2118--- a/Makefile
2219+++ b/Makefile
2323-@@ -47,17 +47,17 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
2020+@@ -51,19 +51,19 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
24212522 SED = sed \
2623 -e "s|@TLPVER@|$(TLPVER)|g" \
···2825- -e "s|@TLP_TLIB@|$(TLP_TLIB)|g" \
2926- -e "s|@TLP_FLIB@|$(TLP_FLIB)|g" \
3027- -e "s|@TLP_ULIB@|$(TLP_ULIB)|g" \
2828+- -e "s|@TLP_BATD@|$(TLP_BATD)|g" \
3129+ -e "s|@TLP_SBIN@|$(_SBIN)|g" \
3230+ -e "s|@TLP_TLIB@|$(_TLIB)|g" \
3331+ -e "s|@TLP_FLIB@|$(_FLIB)|g" \
3432+ -e "s|@TLP_ULIB@|$(_ULIB)|g" \
3333++ -e "s|@TLP_BATD@|$(_BATD)|g" \
3534 -e "s|@TLP_CONFUSR@|$(TLP_CONFUSR)|g" \
3635 -e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
3736- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
3737+- -e "s|@TLP_CONFREN@|$(TLP_CONFREN)|g" \
3838+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
3939++ -e "s|@TLP_CONFREN@|$(_CONFREN)|g" \
3940 -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
4041 -e "s|@TLP_RUN@|$(TLP_RUN)|g" \
4142 -e "s|@TLP_VAR@|$(TLP_VAR)|g" \