From: Nishi Date: Thu, 26 Sep 2024 20:30:20 +0000 (+0000) Subject: add cygwin.sh X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=9d2c6c0d1baeefebe5003de2253a2d8e71900d42;p=tewi.git add cygwin.sh git-svn-id: file:///raid/svn-personal/tewi/trunk@171 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Makefile b/Makefile index c2b3a17..5f7be75 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ all: ./Server ./Module ./Tool/genconf ./Tool/itworks sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'`/g" ./README.tmpl > $@ install: all ./Tool/genconf ./Tool/itworks - mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(PREFIX)/www + mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www if [ ! -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi diff --git a/cygwin.sh b/cygwin.sh new file mode 100644 index 0000000..2b1f4c8 --- /dev/null +++ b/cygwin.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# $Id$ +make PREFIX=/cygdrive/c/Tewi DESTDIR=tewidist PLATFORM=cygwin install +cp /usr/bin/cygwin1.dll tewidist/ +zip -rv tewidist.zip tewidist