Skip to content

Commit dc26441

Browse files
committed
stop sed'ing around during make
1 parent 365c311 commit dc26441

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ endif
8888
#####################################################################
8989
# Generate a stand-alone kernel patch
9090

91-
TP_VER := ${shell sed -ne 's/^\#define TP_VERSION \"\(.*\)\"/\1/gp' tp_smapi.c}
91+
TP_VER := 0.41
9292
ORG := a
9393
NEW := b
9494
PATCH := tp_smapi-$(TP_VER)-for-$(KVER).patch
@@ -144,6 +144,7 @@ patch: $(KSRC)
144144
set-version:
145145
perl -i -pe 's/^(tp_smapi version ).*/$${1}$(VER)/' README
146146
perl -i -pe 's/^(#define TP_VERSION ").*/$${1}$(VER)"/' thinkpad_ec.c tp_smapi.c
147+
perl -i -pe 's/^(TP_VER := ).*/$${1}$(VER)/' Makefile
147148

148149
TGZ=../tp_smapi-$(VER).tgz
149150
create-tgz:

0 commit comments

Comments
 (0)