Skip to content

Commit 403a213

Browse files
committed
Rename stg-build to build.py
The new name is less ambiguous with the `stg` script and its `.py` extension makes it immediately identifyable as a python script. The `.py` extension also makes various tools (e.g. flake8 and isort) find it by default. Signed-off-by: Peter Grayson <[email protected]>
1 parent a7f96f6 commit 403a213

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Documentation/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
COMMANDS = $(shell $(PYTHON) ../stg-build --commands)
1+
COMMANDS = $(shell $(PYTHON) ../build.py --commands)
22
COMMANDS_TXT = $(patsubst %,stg-%.txt,$(COMMANDS))
33

44
MAN1_TXT= stg.txt $(COMMANDS_TXT)
@@ -65,10 +65,10 @@ build-txt: $(COMMANDS_TXT) command-list.txt
6565
ALL_PY = $(shell find ../stgit -name '*.py')
6666

6767
$(COMMANDS_TXT): $(ALL_PY)
68-
$(PYTHON) ../stg-build --asciidoc $(basename $(subst stg-,,$@)) > $@
68+
$(PYTHON) ../build.py --asciidoc $(basename $(subst stg-,,$@)) > $@
6969

7070
command-list.txt: $(ALL_PY)
71-
$(PYTHON) ../stg-build --cmd-list > $@
71+
$(PYTHON) ../build.py --cmd-list > $@
7272

7373
%.html : %.txt
7474
$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $<

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include README Makefile MANIFEST.in AUTHORS COPYING INSTALL TODO
22
include RELEASENOTES
3-
include stg-build
3+
include build.py
44
include examples/*.tmpl
55
include examples/gitconfig
66
include contrib/*.sh

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ install-html:
3030
.PHONY: doc install-doc install-html
3131

3232
lint:
33-
$(PYTHON) -m flake8 . stg stg-build
34-
$(PYTHON) -m isort --check-only --quiet --recursive . stg stg-build
33+
$(PYTHON) -m flake8 . stg
34+
$(PYTHON) -m isort --check-only --quiet --recursive . stg
3535

3636
test: build
3737
$(MAKE) -C t all
File renamed without changes.

0 commit comments

Comments
 (0)