Skip to content

Commit ee9344e

Browse files
committed
set version in spec file too
1 parent 7c187cd commit ee9344e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ set-version: check-ver
156156
perl -i -pe 's/^(#define TP_VERSION ").*/$${1}$(VER)"/' thinkpad_ec.c tp_smapi.c
157157
perl -i -pe 's/^(TP_VER := ).*/$${1}$(VER)/' Makefile
158158
perl -i -pe 's/^(PACKAGE_VERSION=").*/$${1}$(VER)"/' dkms.conf
159+
perl -i -pe 's/^(%define version ).*/$${1}$(VER)/' tp_smapi.spec
159160

160161
create-tgz: check-ver
161162
git archive --format=tar --prefix=tp_smapi-$(VER)/ HEAD | gzip -c > $(TGZ)

0 commit comments

Comments
 (0)