-USERNAME := USERNAME
-DOMAIN := DOMAIN
-GIT_REPOSITORY := /home/$(USERNAME)/Status.git
-
nothing:
@echo 'Type `make remote` to update the remote post-receive script.'
remote:
- scp post-receive $(USERNAME)@$(DOMAIN):$(GIT_REPOSITORY)/hooks/post-receive
+ scp post-receive computer:/srv/git/Status/hooks/post-receive
.PHONY: nothing remote ;
from itertools import starmap
import json
from os import mkdir
-from os.path import exists
+from os.path import exists, expanduser
from pathlib import Path
import re
from shutil import copy2, rmtree
from xml.dom import XHTML_NAMESPACE
from xml.dom.minidom import getDOMImplementation, parseString
-GIT_DIRECTORY = "/home/USERNAME/Status.git"
-BUILD_DIRECTORY = "/home/USERNAME/status.site.example/.build"
-PUBLIC_DIRECTORY = "/home/USERNAME/status.site.example/public"
-PUBLIC_URL = "https://status.site.example"
+GIT_DIRECTORY = "/srv/git/Status"
+BUILD_DIRECTORY = expanduser("~/lady/status/.build")
+PUBLIC_DIRECTORY = expanduser("~/lady/status/public")
+PUBLIC_URL = "https://status.ladys.computer"
LANG = "en"
LIVE_BRANCH = "live"