mirror of
https://github.com/linux-thinkpad/tp_smapi.git
synced 2024-09-11 07:05:28 +03:00
stop sed'ing around during make
This commit is contained in:
parent
365c311a3b
commit
dc26441f45
3
Makefile
3
Makefile
@ -88,7 +88,7 @@ endif
|
||||
#####################################################################
|
||||
# Generate a stand-alone kernel patch
|
||||
|
||||
TP_VER := ${shell sed -ne 's/^\#define TP_VERSION \"\(.*\)\"/\1/gp' tp_smapi.c}
|
||||
TP_VER := 0.41
|
||||
ORG := a
|
||||
NEW := b
|
||||
PATCH := tp_smapi-$(TP_VER)-for-$(KVER).patch
|
||||
@ -144,6 +144,7 @@ patch: $(KSRC)
|
||||
set-version:
|
||||
perl -i -pe 's/^(tp_smapi version ).*/$${1}$(VER)/' README
|
||||
perl -i -pe 's/^(#define TP_VERSION ").*/$${1}$(VER)"/' thinkpad_ec.c tp_smapi.c
|
||||
perl -i -pe 's/^(TP_VER := ).*/$${1}$(VER)/' Makefile
|
||||
|
||||
TGZ=../tp_smapi-$(VER).tgz
|
||||
create-tgz:
|
||||
|
Loading…
Reference in New Issue
Block a user