diff options
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | repo/conf/distributions.in (renamed from repo/conf/distributions) | 2 | ||||
| -rw-r--r-- | www/index.html.in | 8 |
3 files changed, 13 insertions, 7 deletions
@@ -3,11 +3,12 @@ GPGKEY = praat.gpg.key WWWDIR = /var/www/praat WWWHOST = praat.cefala.org APACHEDIR = /etc/apache2/sites-available -BUILD = www/$(INDEX) apache/praat.conf +BUILD = www/$(INDEX) apache/praat.conf repo/conf/distributions REPODATA = repo/db repo/dists repo/pool REPOHOST = www.cefala.org USER = rlaboiss TODAY = $(shell date "+%Y-%m-%d %H:%M:%S %Z") +DISTRIB = trixie build-stamp: $(BUILD) mkdir -p $(REPODATA) @@ -26,7 +27,12 @@ install-www: build-stamp sudo service apache2 restart %: %.in - sed -e 's|@WWWHOST@|$(WWWHOST)|;s|@WWWDIR@|$(WWWDIR)|;s|@INDEX@|$(INDEX)|;s|@GPGKEY@|$(GPGKEY)|;s|@TODAY@|$(TODAY)|' $< > $@ + sed -e 's|@WWWHOST@|$(WWWHOST)|;' \ + -e 's|@WWWDIR@|$(WWWDIR)|;' \ + -e 's|@INDEX@|$(INDEX)|;' \ + -e 's|@GPGKEY@|$(GPGKEY)|;' \ + -e 's|@TODAY@|$(TODAY)|;' \ + -e 's|@DISTRIB@|$(DISTRIB)|;' $< > $@ .PHONY: clean clean: diff --git a/repo/conf/distributions b/repo/conf/distributions.in index d3e72c3..1867098 100644 --- a/repo/conf/distributions +++ b/repo/conf/distributions.in @@ -1,6 +1,6 @@ Origin: praat.cefala.org Label: Praat backports APT repository -Codename: bookworm +Codename: @DISTRIB@ Architectures: i386 amd64 Components: main Description: Backports for Praat (Debian stable) diff --git a/www/index.html.in b/www/index.html.in index 31decf9..8d1efeb 100644 --- a/www/index.html.in +++ b/www/index.html.in @@ -54,7 +54,7 @@ pre { doing speech analysis and synthesis <a href="https://packages.debian.org/source/sid/praat">is part</a> of Debian. This website provides an APT repository with the - Debian packages for Praat that works in the stable (a.k.a “bookworm”) + Debian packages for Praat that works in the stable (a.k.a “@DISTRIB@”) distribution, for recent upstream versions and for the amd64 and i386 architectures.</p> @@ -71,7 +71,7 @@ pre { <script> function get_version(arch) { - return fetch('dists/bookworm/main/binary-' + arch + '/Packages') + return fetch('dists/@DISTRIB@/main/binary-' + arch + '/Packages') .then(response => { return response.text(); }) @@ -94,7 +94,7 @@ pre { <p>For installing the package, run the following command:</p> <pre> - echo "deb http://@WWWHOST@/ bookworm main" | sudo tee /etc/apt/sources.list.d/praat.list + echo "deb http://@WWWHOST@/ @DISTRIB@ main" | sudo tee /etc/apt/sources.list.d/praat.list </pre> <p>This repository is signed. You should add the public GPG key to your @@ -108,7 +108,7 @@ pre { <pre> sudo apt update - sudo apt install praat/bookworm praat-doc/bookworm + sudo apt install praat/@DISTRIB@ praat-doc/@DISTRIB@ </pre> <hr> |
