2002-06-29 15:46:34 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This file is free software; as a special exception the author gives
|
|
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd dist-w32
|
|
|
|
|
2002-06-30 09:39:53 +02:00
|
|
|
bindir=..
|
|
|
|
|
2002-06-29 15:46:34 +02:00
|
|
|
if [ -f ../README ]; then
|
|
|
|
srcdir=..
|
2002-06-30 09:39:53 +02:00
|
|
|
elif [ -f ../../README ]; then
|
|
|
|
srcdir=../..
|
|
|
|
bindir=..
|
2002-06-29 15:46:34 +02:00
|
|
|
elif [ -f ../../gnupg-stable/README ]; then
|
|
|
|
srcdir=../../gnupg-stable
|
|
|
|
elif [ -f ../../../gnupg-stable/README ]; then
|
|
|
|
srcdir=../../../gnupg-stable
|
|
|
|
else
|
|
|
|
echo "cannot figure out the source dir" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2002-06-30 09:39:53 +02:00
|
|
|
version=$(sed -n 's/^#[ ]*define[ ][ ]*VERSION[ ][ ]*\"\([0-9.]*\)\"/\1/p' $bindir/config.h)
|
|
|
|
echo "building version $version"
|
|
|
|
|
2002-06-29 15:46:34 +02:00
|
|
|
rm * || true
|
2002-06-30 09:39:53 +02:00
|
|
|
ln ${bindir}/g10/gpg.exe gpg.exe
|
|
|
|
ln ${bindir}/g10/gpgv.exe gpgv.exe
|
2002-06-29 15:46:34 +02:00
|
|
|
mingw32 strip gpg.exe
|
2002-06-30 09:39:53 +02:00
|
|
|
mingw32 strip gpgv.exe
|
|
|
|
if [ -f ${srcdir}/doc/gpg.man ] ; then
|
2002-06-29 15:46:34 +02:00
|
|
|
sed `printf "s/\b.//g"` ../doc/gpg.man >gpg.man
|
|
|
|
else
|
2002-06-30 09:39:53 +02:00
|
|
|
man -Tlatin1 -l ${srcdir}/doc/gpg.1 | sed `printf "s/\b.//g"` >gpg.man
|
2002-06-29 15:46:34 +02:00
|
|
|
fi
|
|
|
|
todos gpg.man
|
|
|
|
cp ${srcdir}/README .
|
|
|
|
todos README
|
|
|
|
cp ${srcdir}/COPYING .
|
|
|
|
todos COPYING
|
|
|
|
ln ${srcdir}/doc/README.W32 .
|
|
|
|
todos README.W32
|
|
|
|
ln ${srcdir}/doc/FAQ .
|
|
|
|
todos FAQ
|
|
|
|
for i in ${srcdir}/po/*.gmo; do ln $i "$(basename $i .gmo).mo" ; done
|
2002-06-30 09:39:53 +02:00
|
|
|
zip "gnupg-w32-${version}.zip" *
|
2002-06-29 15:46:34 +02:00
|
|
|
|
|
|
|
|