Update 2023-11-02 11:43
This commit is contained in:
parent
084a65ca3a
commit
8cfb259062
10
Makefile
10
Makefile
@ -19,6 +19,8 @@ PS_FILES != find src -type f -name "*.ps" | sed 's|src/||g'
|
||||
PA_FILES != find src -type f -name "*.pa" | sed 's|src/||g'
|
||||
PT_FILES != find src -type f -name "*.pt" | sed 's|src/||g'
|
||||
|
||||
COMMIT_MSG != echo "Update $$(date +"%Y-%m-%d %H:%M")"
|
||||
|
||||
# put static files and dirs into .control/static-files. Globbing is supported.
|
||||
STATIC_FILES != cat .control/static-files
|
||||
|
||||
@ -73,6 +75,11 @@ prepare:
|
||||
echo "Mkdir: www"
|
||||
mkdir -p www
|
||||
|
||||
git-commit:
|
||||
git pull --autostash
|
||||
git add src Makefile
|
||||
git commit -m "$(COMMIT_MSG)"
|
||||
|
||||
copy-static-files: prepare
|
||||
rsync -a --partial --delete --no-p --no-o --no-g --out-format="Copy: %f => www/" $(STATIC_FILES) www/
|
||||
|
||||
@ -84,12 +91,13 @@ _clean:
|
||||
|
||||
install:
|
||||
make -s _install
|
||||
make -s git-commit
|
||||
_install: website
|
||||
echo "Fixing Permissions in www/"
|
||||
doas chown -R sdk:www www
|
||||
doas chmod -R ugo+Xrw www
|
||||
echo "Deploy: www/ => /var/www/htdocs/"
|
||||
cd www && doas rsync -a --partial --delete --exclude "*/cache/*" --out-format="Deploy: %f => /var/www/htdocs/%f" * $(REMOTE)
|
||||
cd www && doas rsync -a -o -g -p --inplace --partial --delete --exclude "*/cache/*" --out-format="Deploy: %f => /var/www/htdocs/%f" * $(REMOTE)
|
||||
|
||||
|
||||
#### HELPER TARGETS ####
|
||||
|
Loading…
Reference in New Issue
Block a user