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 server.go. All files
server.go
@@ -1,4 +1,4 @@-package www+package dirview import ( "context"@@ -173,7 +173,7 @@ func (s *server) byPrefix(prefix string) *tree { } // lookup returns the tree that serves path, or a version of, eg-// /x/www@261024.4/. A tree inside another wins, so it keeps its own label+// /x/dirview@261024.4/. A tree inside another wins, so it keeps its own label // and lock. func (s *server) lookup(path string) *tree { s.mu.RLock()@@ -257,7 +257,7 @@ func (s *server) handler() http.Handler { // localhost, so the request must come from a page of this server. func (s *server) handleStop(w http.ResponseWriter, r *http.Request) { if !sameOrigin(r) {- http.Error(w, "stop must come from an "+progName+" page", http.StatusForbidden)+ http.Error(w, "stop must come from a "+progName+" page", http.StatusForbidden) return } trees, crumbs, why, kill := s.list(), []crumb{{Label: progName}}, "Kill server button", true