Merge branch 'godot3' of ssh://gitea.dmz.rs:2222/Decentrala/fishtank into godot3

This commit is contained in:
fram3d 2024-07-02 14:14:47 +02:00
commit 3f75f5f447
2 changed files with 27 additions and 10 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
*.pdf *.pdf
rubbish/ rubbish/
.godot/ .godot/
.checksum.txt
bins

View File

@ -3,12 +3,21 @@ help:
@echo "\tmake pdf" @echo "\tmake pdf"
@echo "\tmake creature" @echo "\tmake creature"
@echo "\tmake show" @echo "\tmake show"
@echo "\tmake install-godot" @echo "\tmake check (to check your dependencies)"
@echo "\tmake uninstall-godot" @echo "\tsudo make install-godot"
@echo "\tsudo make uninstall-godot"
.PHONY: pdf .PHONY: pdf
pdf: overview.pdf pdf: overview.pdf
.PHONY: check
check:
@which lowdown >/dev/null || echo 'install lowdown (optional)'
@which git-lfs >/dev/null || echo 'install git-lfs'
@which pdflatex >/dev/null || echo 'install pdflatex (optional)'
@which less >/dev/null || echo 'install less (you absolute cave-man)'
@godot --version | grep -q '3.2' || echo 'install godot version 3.2.3 using "make install-godot"'
rubbish/: rubbish/:
mkdir rubbish mkdir rubbish
@ -44,13 +53,17 @@ $(COLLECTION): overview.md World
@./parse.sh Mechanics/Stats.md >> $(COLLECTION) @./parse.sh Mechanics/Stats.md >> $(COLLECTION)
@lowdown -sTterm $(COLLECTION) | less -R @lowdown -sTterm $(COLLECTION) | less -R
install-godot: Godot_v4.2.2-stable_linux.x86_64 bins/:
install -m 755 Godot_v4.2.2-stable_linux.x86_64 /usr/local/bin/godot @mkdir -p bins
rm Godot_v4.2.2-stable_linux.x86_64.zip .checksum.txt:
rm Godot_v4.2.2-stable_linux.x86_64 curl https://downloads.tuxfamily.org/godotengine/3.2.3/SHA512-SUMS.txt | grep x11.64 > .checksum.txt
Godot_v4.2.2-stable_linux.x86_64: Godot_v3.2.3-stable_x11.64: .checksum.txt bins/
wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip wget https://downloads.tuxfamily.org/godotengine/3.2.3/Godot_v3.2.3-stable_x11.64.zip
unzip Godot_v4.2.2-stable_linux.x86_64.zip sha512sum -c .checksum.txt
mv Godot_v3.2.3-stable_x11.64.zip bins/
cd bins/ && unzip Godot_v3.2.3-stable_x11.64.zip
install-godot: Godot_v3.2.3-stable_x11.64
install -m 755 bins/Godot_v3.2.3-stable_x11.64 /usr/local/bin/godot
.PHONY: uninstall-godot .PHONY: uninstall-godot
uninstall-godot: uninstall-godot:
@ -58,4 +71,6 @@ uninstall-godot:
.PHONY: clean .PHONY: clean
clean: clean:
$(RM) -r rubbish overview.tex $(COLLECTION) $(RM) -r rubbish overview.tex $(COLLECTION) \
.checksum.txt \
bins