OSDN Git Service

Prepare for release of 1.98e.
[ffftp/ffftp.git] / contrib / putty / BUILDSCR
diff --git a/contrib/putty/BUILDSCR b/contrib/putty/BUILDSCR
deleted file mode 100644 (file)
index d583934..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-# -*- sh -*-\r
-# Build script to construct a full distribution directory of PuTTY.\r
-\r
-module putty\r
-\r
-# Set up the arguments for the main make command.\r
-set Makever -DSVN_REV=$(revision)\r
-ifneq "$(!numeric $(revision))" "yes" set Makever $(Makever) -DMODIFIED\r
-ifneq "$(RELEASE)" "" set Makever $(Makever) -DRELEASE=$(RELEASE)\r
-ifneq "$(PRERELEASE)" "" set Makever $(Makever) -DPRERELEASE=$(PRERELEASE)\r
-ifneq "$(date)" "" set Makever $(Makever) -DSNAPSHOT=$(date)\r
-set Makeargs VER="$(Makever)"\r
-ifneq "$(XFLAGS)" "" set Makeargs $(Makeargs) XFLAGS="$(XFLAGS)"\r
-ifneq "$(MAKEARGS)" "" set Makeargs $(Makeargs) $(MAKEARGS)\r
-\r
-# Set up the version string for the docs build.\r
-set Docmakeargs VERSION="PuTTY revision $(revision)"\r
-ifneq "$(RELEASE)" "" set Docmakeargs VERSION="PuTTY release $(RELEASE)"\r
-ifneq "$(PRERELEASE)" "" set Docmakeargs VERSION="PuTTY pre-release $(PRERELEASE):r$(revision)"\r
-ifneq "$(date)" "" set Docmakeargs VERSION="PuTTY development snapshot $(date)"\r
-\r
-# Set up the version string for the Unix source archive.\r
-set Unxver r$(revision)\r
-ifneq "$(RELEASE)" "" set Unxver $(RELEASE)\r
-ifneq "$(PRERELEASE)" "" set Unxver $(PRERELEASE)pre $(revision)\r
-ifneq "$(date)" "" set Unxver $(date)\r
-\r
-# Set up the various version strings for the installer.\r
-set Iversion r$(revision)\r
-set Iname PuTTY revision $(revision)\r
-set Ivertext Revision $(revision)\r
-set Irev $(revision)\r
-set Ifilename putty-$(Iversion)-installer.exe\r
-ifneq "$(RELEASE)" "" set Iversion $(RELEASE)\r
-ifneq "$(RELEASE)" "" set Iname PuTTY version $(RELEASE)\r
-ifneq "$(RELEASE)" "" set Ivertext Release $(RELEASE)\r
-ifneq "$(RELEASE)" "" set Irev 0\r
-ifneq "$(RELEASE)" "" set Ifilename putty-$(RELEASE)-installer.exe\r
-ifneq "$(PRERELEASE)" "" set Iversion $(PRERELEASE):r$(revision)\r
-ifneq "$(PRERELEASE)" "" set Iname PuTTY pre-release $(PRERELEASE):r$(revision)\r
-ifneq "$(PRERELEASE)" "" set Ivertext Pre-release $(PRERELEASE):r$(revision)\r
-ifneq "$(PRERELEASE)" "" set Ifilename putty-$(PRERELEASE)-pre$(revision)-installer.exe\r
-ifneq "$(date)" "" set Iversion $(date):r$(revision)\r
-ifneq "$(date)" "" set Iname PuTTY development snapshot $(date):r$(revision)\r
-ifneq "$(date)" "" set Ivertext Development snapshot $(date):r$(revision)\r
-ifneq "$(date)" "" set Ifilename putty-$(date)-installer.exe\r
-\r
-in putty do ./mksrcarc.sh\r
-in putty do ./mkunxarc.sh $(Unxver)\r
-in putty do perl mkfiles.pl\r
-in putty/doc do make $(Docmakeargs) putty.hlp\r
-in putty/doc do make $(Docmakeargs) chm\r
-\r
-# Munge the installer script locally so that it reports the version\r
-# we're really building.\r
-in putty/windows do perl -i~ -pe 'BEGIN{$$a=shift@ARGV;}s/^(AppVerName=).*$$/$$1$$a/' '$(Iname)' putty.iss\r
-in putty/windows do perl -i~ -pe 'BEGIN{$$a=shift@ARGV;}s/^(VersionInfoTextVersion=).*$$/$$1$$a/' '$(Ivertext)' putty.iss\r
-in putty/windows do perl -i~ -pe 'BEGIN{$$a=shift@ARGV;}s/^(AppVersion=).*$$/$$1$$a/' '$(Iversion)' putty.iss\r
-in putty/windows do perl -i~ -pe 'BEGIN{$$a=shift@ARGV;$$a=~s/M//;}s/^(VersionInfoVersion=\d+\.\d+\.)\d+(\.\d+)\r?$$/$$1$$a$$2/' '$(Irev)' putty.iss\r
-\r
-# Windowsify LICENCE, since it's going in the Windows installer.\r
-in putty do perl -i~ -pe 'y/\015//d;s/$$/\015/' LICENCE\r
-\r
-delegate windows\r
-  # FIXME: Cygwin alternative?\r
-  in putty/windows do cmd /c vcvars32 \& nmake -f Makefile.vc $(Makeargs)\r
-  # Ignore exit code from hhc, in favour of seeing whether the .chm\r
-  # file was created. (Yuck; but hhc appears to return non-zero\r
-  # exit codes on whim.)\r
-  in putty/doc do hhc putty.hhp; test -f putty.chm\r
-  in putty/windows do iscc putty.iss\r
-  return putty/windows/*.exe\r
-  return putty/windows/*.map\r
-  return putty/doc/putty.chm\r
-  return putty/windows/Output/setup.exe\r
-enddelegate\r
-in putty/doc do make mostlyclean\r
-in putty/doc do make $(Docmakeargs)\r
-in putty/windows do zip -k -j putty.zip `ls *.exe | grep -v puttytel` ../doc/putty.chm ../doc/putty.hlp ../doc/putty.cnt\r
-in putty/doc do zip puttydoc.zip *.html\r
-\r
-# Deliver the actual PuTTY release directory into a subdir `putty'.\r
-deliver putty/windows/*.exe putty/x86/$@\r
-deliver putty/windows/putty.zip putty/x86/$@\r
-deliver putty/windows/Output/setup.exe putty/x86/$(Ifilename)\r
-deliver putty/doc/puttydoc.zip putty/$@\r
-deliver putty/doc/putty.chm putty/$@\r
-deliver putty/doc/putty.hlp putty/$@\r
-deliver putty/doc/putty.cnt putty/$@\r
-deliver putty/doc/puttydoc.txt putty/$@\r
-deliver putty/doc/*.html putty/htmldoc/$@\r
-deliver putty/putty-src.zip putty/$@\r
-deliver putty/*.tar.gz putty/$@\r
-\r
-# Deliver the map files alongside the `proper' release deliverables.\r
-deliver putty/windows/*.map maps-x86/$@\r
-\r
-# Deliver sign.sh, so that whoever has just built PuTTY (the\r
-# snapshot scripts or me, depending) can conveniently sign it with\r
-# whatever key they want.\r
-deliver putty/sign.sh $@\r
-\r
-# Create files of cryptographic checksums, which will be signed along\r
-# with the files they verify. We've provided MD5 checksums for a\r
-# while, but now MD5 is looking iffy, we're expanding our selection.\r
-#\r
-# Creating these files is most easily done in the destination\r
-# directory, where all the files we're delivering are already in their\r
-# final relative layout.\r
-in-dest putty do a=`\find * -type f -print`; md5sum $$a > md5sums && sha1sum $$a > sha1sums && sha256sum $$a > sha256sums && sha512sum $$a > sha512sums\r
-\r
-# And construct .htaccess files. One in the top-level directory,\r
-# setting the MIME types for Windows help files and providing an\r
-# appropriate link to the source archive:\r
-in-dest putty do echo "AddType application/octet-stream .chm" >> .htaccess\r
-in-dest putty do echo "AddType application/octet-stream .hlp" >> .htaccess\r
-in-dest putty do echo "AddType application/octet-stream .cnt" >> .htaccess\r
-in-dest putty do set -- putty*.tar.gz; for k in '' .DSA .RSA; do echo RedirectMatch temp '(.*/)'putty.tar.gz$$k\$$ '$$1'"$$1$$k" >> .htaccess; done\r
-# And one in the x86 directory, providing a link for the installer.\r
-in-dest putty/x86 do set -- putty*installer.exe; for k in '' .DSA .RSA; do echo RedirectMatch temp '(.*/)'putty-installer.exe$$k\$$ '$$1'"$$1$$k" >> .htaccess; done\r