From: Nishi Date: Wed, 16 Oct 2024 10:49:46 +0000 (+0000) Subject: add src-archive X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;p=tewi.git add src-archive git-svn-id: file:///raid/svn-personal/tewi/trunk@358 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Makefile b/Makefile index bddd35e..f16d3dd 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,16 @@ include Platform/$(PLATFORM).mk FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX) -.PHONY: all format clean ./Server ./Common ./Module get-version +.PHONY: all format clean ./Server ./Common ./Module get-version src-archive all: ./Server $(MODULE) +src-archive: clean + @svn cleanup --remove-unversioned + cp -rf . /tmp/tewi-`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'` + cd /tmp && tar --exclude .github -czvf tewi-`grep "define TW_VERSION" tewi-*/Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`.tar.gz tewi-`grep "define TW_VERSION" tewi-*/Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'` + mv /tmp/tewi-`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`.tar.gz ./ + ./Tool/option: ./Tool/option.c config.h cc -o $@ ./Tool/option.c diff --git a/README b/README index 4386995..ec6a1b4 100644 --- a/README +++ b/README @@ -4,7 +4,8 @@ Tewi HTTPd version 2.04 Original by Nishi All documentations for Tewi HTTPd will be able to be found on-line at -https://trac.nishi.boats/tewi +1. https://pnsk-lab.github.io/tewi +2. https://trac.nishi.boats/tewi Distribution Contents ------------------------------- diff --git a/README.tmpl b/README.tmpl index b38a8f3..300843b 100644 --- a/README.tmpl +++ b/README.tmpl @@ -4,7 +4,8 @@ Tewi HTTPd version @VERSION@ Original by Nishi All documentations for Tewi HTTPd will be able to be found on-line at -https://trac.nishi.boats/tewi +1. https://pnsk-lab.github.io/tewi +2. https://trac.nishi.boats/tewi Distribution Contents -------------------------------