gitea runners
Some checks failed
Build Org Website / build (push) Has been cancelled

This commit is contained in:
2026-05-06 14:55:10 +01:00
parent 1f5bd9e089
commit bb299b2f98
321 changed files with 216 additions and 117 deletions

19
Makefile Normal file → Executable file
View File

@@ -3,13 +3,18 @@
VENV := .venv
PY := $(VENV)/bin/python
PIP := $(VENV)/bin/pip
PERM_DIR := /home/zaine/master-folder/projects/scripts/bash-scripts
all: clean-output build search clean-venv
all: set-perms clean-output build search clean-venv
build:
@echo "Building project..."
emacs -Q --script build-site.el
set-perms:
@echo "Setting permissions for output directory..."
cd $(PERM_DIR) && sudo ./master-perms.sh
search: $(VENV)
@echo "Generating search index"
$(PY) search-index-json.py
@@ -31,24 +36,14 @@ norm:
@echo "sorting out the backups..."
find . -path ./backups -prune -o -type f -name '*~' -exec mv {} backups/ \;
fix-permissions:
echo "shakkal123" | sudo -S chown -R zaine:zaine .
restore-permissions:
echo "shakkal123" | sudo -S chown -R 33:33 .
perm-change-logs:
echo "shakkal123" | sudo -S chown -R zaine:zaine org-web-build.log
# Show help message
help:
@echo "Available targets:"
@echo " make - Full rebuild"
@echo " make build - Rebuild the output directory"
@echo " make set-perms - Set permissions for output directory"
@echo " make clean-output - Remove output directory"
@echo " make clean-venv - Remove venv directory"
@echo " make norm - Move all files that end with ~ to the backup folder"
@echo " make search - creates the search index"
@echo " make fix-permissions - Fix permissions for the current user"
@echo " make restore-permissions - Restore permissions to www-data"
@echo " make help - Show this help message!"