bootstrap GiteaPC with itself

This commit is contained in:
Lephenixnoir 2021-01-03 17:26:35 +01:00
parent 78c5d96f95
commit 556277fc3c
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
3 changed files with 22 additions and 3 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
__pycache__ __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 curl "$URL" -o giteapc-master.tar.gz
tar -xzf giteapc-master.tar.gz && cd giteapc tar -xzf giteapc-master.tar.gz && cd giteapc
# Install the program itself (not to $PREFIX, which is for programs installed # Bootstrap the program by installing it with iself (allowing updates)
# by GiteaPC)
make install python3 giteapc.py install Lephenixnoir/GiteaPC
# Check whether the bin folder is already in the PATH # Check whether the bin folder is already in the PATH