261119.1 d1753f14c7293dd5f2cdb3b5b4488e94ab87a52a The project is dirview and its command drvu
commit time warp
The name is final. NAME, back from WORKING_NAME, holds drvu, and everything the tool names follows: the binaries drvu, drvu-public and drvu-syntax, DRVU_ADDR and the other variables, ~/.local/state/drvu, the journal tag, .drvu-follow, /_drvu/ and the systemd units.
The project, its Go module and its Debian packages are dirview and dirview-syntax. The Makefile takes that name from the module path as PACKAGE, so the name test now guards both names.
Old names stop working: WWW_ADDR, ~/.local/state/www, the www package and running www servers stay until removed.
Changes to name.go. All files
name.go
@@ -1,4 +1,4 @@-package www+package dirview import ( _ "embed"@@ -6,17 +6,18 @@ import ( "syscall" ) -//go:embed WORKING_NAME+//go:embed NAME var nameFile string -// progName is the program's name, from the file WORKING_NAME, which the-// Makefile and the package files read too. Every path, variable, URL and-// message that names the program derives from it, so a rename changes one-// word.+// progName is the program's name, from the file NAME, which the Makefile+// and the package files read too. Every path, variable, URL and message+// that names the program derives from it, so a rename changes one word.+// The project, its module and its Debian package carry a name of their+// own, which go.mod holds. var progName = strings.TrimSpace(nameFile) // envPrefix starts the name of every environment variable the program-// reads, eg WWW_ADDR.+// reads, eg DRVU_ADDR. var envPrefix = strings.ToUpper(progName) + "_" // ownPath is the URL path of the program's own resources, eg the@@ -24,7 +25,7 @@ var envPrefix = strings.ToUpper(progName) + "_" // home, which this one, starting with an underscore, does not shadow. var ownPath = "/_" + progName + "/" -// basePath is the path every URL of the server starts with, eg /www, set+// basePath is the path every URL of the server starts with, eg /drvu, set // by --base for a server that shares its domain with other sites behind a // proxy; "" serves at the root. It has no trailing slash. Tree prefixes, // ownPath and the stylesheet's URL include it, so most code never names