diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 18:53:15 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 18:53:15 +0200 |
commit | cb328be017deff53f281de26654e2e5fc0108fb8 (patch) | |
tree | fb85cd065db9cfc776cd2dc2d59601d5a92bf3a1 | |
parent | 1e275c07b6de4864f8048777e3302ded20a11b34 (diff) |
Rename exttmpl to extpo
-rw-r--r-- | .exrc | 6 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | GNUmakefile | 14 | ||||
-rw-r--r-- | cmd/extpo/main.go (renamed from cmd/exttmpl/main.go) | 0 |
4 files changed, 11 insertions, 11 deletions
@@ -4,8 +4,8 @@ function s:SaveExcursion(cmd) call winrestview(l:win) endfunction -autocmd BufNewFile,BufRead */cmd/exttmpl/* - \ setlocal makeprg=go\ build\ ./cmd/exttmpl +autocmd BufNewFile,BufRead */cmd/extpo/* + \ setlocal makeprg=go\ build\ ./cmd/extpo autocmd FileType go autocmd BufWritePre <buffer> \ call s:SaveExcursion('gofmt -s') @@ -15,4 +15,4 @@ nnoremap <silent> <LocalLeader>t :vimgrep /\CTODO/ **/*<CR> runtime plugin/netrwPlugin.vim let &wildignore = netrw_gitignore#Hide() . ',.git/*,vendor/*' -let g:netrw_list_hide .= ',.*\\.gen\\..*' +let g:netrw_list_hide .= ',.*\\.gen\\..*'
\ No newline at end of file @@ -1,6 +1,6 @@ # Binaries euro-cash.eu -exttmpl +extpo !cmd/* *.mo diff --git a/GNUmakefile b/GNUmakefile index 936ddfb..0eadd9d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,18 +6,18 @@ gofiles := $(shell find main.go src -name '*.go') sqlfiles := $(shell find src/dbx/sql -name '*.sql') templates := $(shell find src/templates -name '*.tmpl') -exttmpl := $(wildcard cmd/exttmpl/*.go) +extpo := $(wildcard cmd/extpo/*.go) ENABLED_LANGUAGES := $(shell ./aux/enabled-languages) -all: euro-cash.eu exttmpl +all: euro-cash.eu extpo euro-cash.eu: $(cssfiles) $(templates) $(gofiles) $(sqlfiles) $(GO) build -extract: exttmpl +extract: extpo find . -name '*.go' -exec xgotext --foreign-user -o po/backend.pot {} + - find . -name '*.html.tmpl' -exec ./exttmpl {} + \ + find . -name '*.html.tmpl' -exec ./extpo {} + \ | msgcat po/backend.pot - -o po/messages.pot for bcp in $(ENABLED_LANGUAGES); \ do \ @@ -38,8 +38,8 @@ po: msgfmt "$$po" -o "$${po%.*}.mo"; \ done -exttmpl: $(exttmpl) - $(GO) build ./cmd/exttmpl +extpo: $(extpo) + $(GO) build ./cmd/extpo %.min.css: %.css if command -v lightningcss >/dev/null; \ @@ -52,7 +52,7 @@ exttmpl: $(exttmpl) clean: find . -type f \( \ -name euro-cash.eu \ - -or -name exttmpl \ + -or -name extpo \ -or -name '*.min.css' \ -or -name '*.tar.gz' \ \) -delete diff --git a/cmd/exttmpl/main.go b/cmd/extpo/main.go index 4b3ef6d..4b3ef6d 100644 --- a/cmd/exttmpl/main.go +++ b/cmd/extpo/main.go |