Skip to content

Commit 0ff247b

Browse files
DurhamGfacebook-github-bot
authored andcommitted
packaging: take version number as a parameter for debian (#2)
Summary: X-link: facebookarchive/sapling-staging#2 Instead of hard coding 0.1, let's take the version as a parameter. Reviewed By: sggutier Differential Revision: D39068760 fbshipit-source-id: 1eda642b19ac961544161fa9f5ecacda9a292f6b
1 parent b601174 commit 0ff247b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

eden/scm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ build:
108108
deb:
109109
DESTDIR=install make install-oss
110110
mkdir -p "install/DEBIAN"
111-
cp packaging/debian/control "install/DEBIAN/control"
111+
cp packaging/debian/control install/DEBIAN/control
112+
sed -i "s/%VERSION%/$(VERSION)/g" install/DEBIAN/control
112113
dpkg-deb --build --root-owner-group install
113114
dpkg-name install.deb
114115

eden/scm/packaging/debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: sapling
2-
Version: 0.1
2+
Version: %VERSION%
33
Architecture: amd64
44
Maintainer: Meta Platforms, Inc.
5-
Description: A source control client
5+
Description: A source control client.

0 commit comments

Comments
 (0)