build: fix binary name produced on make oss (#60)

Summary:
When running `make oss` or `make install-oss`, both a `hg` and a `sl` binaries would be produced under `eden/scm/build/scripts-*/`. For `make oss` a `hg` binary was produced at `eden/scm` and when running make install, `hg` and `sl` binaries were created under `$DESTDIR/usr/local/bin/`.

This diff fixes both of the previously mentioned behaviors so that now only a `sl` binary is created at `eden/scm`,  `eden/scm/build/scripts-*/`, and `$DESTDIR/usr/local/bin/`.

X-link: https://github.com/facebook/sapling-staging/pull/60

Reviewed By: bolinfest

Differential Revision: D41047258

Pulled By: sggutier

fbshipit-source-id: 4fde9c659be4e69105105922a2711575ac4073eb
This commit is contained in:
Saul Gutierrez 2022-11-04 16:41:43 -07:00 committed by Facebook GitHub Bot
parent 7f40624aa6
commit c7d95c0ef3
2 changed files with 4 additions and 3 deletions

3
eden/scm/.gitignore vendored
View File

@ -87,9 +87,10 @@ wheelhouse/
hg-python
hg.py
# mercurial binary
# scm binary
hg
hg3
sl
# make-local Windows artifacts
hgrc.d

View File

@ -67,8 +67,8 @@ help:
all: build
oss:
export HGNAME=sl
SAPLING_OSS_BUILD=true \
$(eval HGNAME = sl)
SAPLING_OSS_BUILD=true HGNAME=$(HGNAME) \
$(shell $(PYTHON3) contrib/pick_python.py $(PYTHON3)) setup_with_version.py $(PURE) \
build_interactive_smartlog \
build_py -c -d . \