bootstrap GiteaPC with itself

This commit is contained in:
Lephenixnoir 2021-01-03 17:26:35 +01:00
parent 78c5d96f95
commit 556277fc3c
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 22 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
__pycache__
giteapc-config-*.make

19
giteapc.make Normal file
View File

@ -0,0 +1,19 @@
# giteapc: version=1
ifneq ($(GITEAPC_CONFIG),)
include giteapc-config-$(GITEAPC_CONFIG).make
endif
configure:
@ true
build:
@ true
install:
@ make install
uninstall:
@ make uninstall
.PHONY: configure build install uninstall

View File

@ -10,10 +10,9 @@ cd "$(mktemp -d)"
curl "$URL" -o giteapc-master.tar.gz
tar -xzf giteapc-master.tar.gz && cd giteapc
# Install the program itself (not to $PREFIX, which is for programs installed
# by GiteaPC)
# Bootstrap the program by installing it with iself (allowing updates)
make install
python3 giteapc.py install Lephenixnoir/GiteaPC
# Check whether the bin folder is already in the PATH