mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
4d8782e74f
I've shifted away from using the SVN revision number as a monotonic version identifier (replacing it in the Windows version resource with a count of days since an arbitrary epoch), and I've removed all uses of SVN keyword expansion (replacing them with version information written out by Buildscr). While I'm at it, I've done a major rewrite of the affected code which centralises all the computation of the assorted version numbers and strings into Buildscr, so that they're all more or less alongside each other rather than scattered across multiple source files. I've also retired the MD5-based manifest file system. A long time ago, it seemed like a good idea to arrange that binaries of PuTTY would automatically cease to identify themselves as a particular upstream version number if any changes were made to the source code, so that if someone made a local tweak and distributed the result then I wouldn't get blamed for the results. Since then I've decided the whole idea is more trouble than it's worth, so now distribution tarballs will have version information baked in and people can just cope with that. [originally from svn r10262]
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# -*- sh -*-
|
|
|
|
# Build script to scan PuTTY with the downloadable Coverity scanner
|
|
# and generate a tar file to upload to their open-source scanning
|
|
# service.
|
|
|
|
module putty
|
|
|
|
# Preparations.
|
|
in putty do ./mkfiles.pl
|
|
in putty do ./mkauto.sh
|
|
in putty/doc do make
|
|
|
|
# Scan the Unix build, on a 64-bit system to differentiate as much as
|
|
# possible from the other scan of the cross-platform files.
|
|
delegate covscan64
|
|
in putty do ./configure
|
|
in putty do cov-build --dir cov-int make
|
|
in putty do tar czvf cov-int.tar.gz cov-int
|
|
return putty/cov-int.tar.gz
|
|
enddelegate
|
|
|
|
# Scan the Windows build, by means of building with Winelib (since as
|
|
# of 2013-07-22, the Coverity Scan website doesn't offer a 32-bit
|
|
# Windows scanner for download).
|
|
delegate covscan32wine
|
|
in putty do tar xzvf cov-int.tar.gz
|
|
in putty/windows do cov-build --dir ../cov-int make -f Makefile.cyg CC=winegcc RC=wrc XFLAGS=-DCOVERITY
|
|
in putty do tar czvf cov-int.tar.gz cov-int
|
|
return putty/cov-int.tar.gz
|
|
enddelegate
|
|
|
|
# Provide the revision number as one of the build outputs, to make it
|
|
# easy to construct a curl upload command which will annotate it
|
|
# appropriately when uploaded.
|
|
in putty do echo $(vcsfullid) > revision.txt
|
|
|
|
deliver putty/revision.txt $@
|
|
deliver putty/cov-int.tar.gz $@
|