]> Nishi Git Mirror - tewi.git/commitdiff
some cygwin archive creator
authorNishi <nishi@nishi.boats>
Thu, 26 Sep 2024 20:45:59 +0000 (20:45 +0000)
committerNishi <nishi@nishi.boats>
Thu, 26 Sep 2024 20:45:59 +0000 (20:45 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@172 8739d7e6-ffea-ec47-b151-bdff447c6205

cygwin.sh

index 2b1f4c80a13f0616cf5dd5106aa70654a399e509..739ef707782bcc80a468f1ef93124c0816a5a9a9 100644 (file)
--- a/cygwin.sh
+++ b/cygwin.sh
@@ -1,5 +1,19 @@
 #!/bin/sh
 # $Id$
+rm -rf tewidist
 make PREFIX=/cygdrive/c/Tewi DESTDIR=tewidist PLATFORM=cygwin install
-cp /usr/bin/cygwin1.dll tewidist/
+cp -rfv tewidist/cygdrive/c/Tewi tewidist/Tewi
+cp /usr/bin/cygwin1.dll tewidist/Tewi/bin/
+rm -rf tewidist/cygdrive
+echo "@echo off" > tewidist/install.bat
+echo "echo This installer will attempt to overwrite files." >> tewidist/install.bat
+echo "echo Make sure you make backups." >> tewidist/install.bat
+echo "pause" >> tewidist/install.bat
+echo "xcopy /e Tewi C:\\Tewi" >> tewidist/install.bat
+echo "echo Tewi HTTPd has been installed." >> tewidist/install.bat
+echo "pause" >> tewidist/install.bat
+echo "exit" >> tewidist/install.bat
+unix2dos tewidist/install.bat
+rm -f tewidist.zip
 zip -rv tewidist.zip tewidist
+rm -rf tewidist