2005-10-02 14:30:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Create a archive 'gpw32-*.zip' (gpwYMMDD.zip) with Win32 (MinGW) build
|
|
|
|
# of the Golded+.
|
|
|
|
|
2005-11-05 21:36:39 +00:00
|
|
|
if [ ! "${TERM}" = "cygwin" ]
|
2005-10-29 14:43:12 +00:00
|
|
|
then
|
|
|
|
echo "This is not Cygwin enviroment, exit."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2005-10-16 11:31:01 +00:00
|
|
|
date=`date +%Y%m%d`
|
2005-11-06 12:51:16 +00:00
|
|
|
shortdate=`echo ${date} | sed s/^...//`
|
2005-10-16 11:31:01 +00:00
|
|
|
name=../gpw32-115-${date}.zip
|
2005-11-06 12:51:16 +00:00
|
|
|
shortname=../gpw${shortdate}.zip
|
2006-10-04 20:12:31 +00:00
|
|
|
dizfile=bin/file_id.diz
|
2005-10-02 14:30:52 +00:00
|
|
|
|
2006-02-18 14:08:47 +00:00
|
|
|
echo Build a Golded+/w32mingw binary package: ${name} and ${shortname}
|
|
|
|
|
2006-02-18 15:23:03 +00:00
|
|
|
if [ ! -f golded3/mygolded.h ]; then
|
|
|
|
cp golded3/mygolded.__h golded3/mygolded.h
|
2006-02-20 08:42:13 +00:00
|
|
|
echo "golded3/mygolded.h is created now. Please edit this file"
|
|
|
|
exit 1
|
2006-02-18 15:23:03 +00:00
|
|
|
fi
|
2011-02-13 21:54:37 +00:00
|
|
|
#sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
|
2005-10-02 14:30:52 +00:00
|
|
|
|
2006-02-20 08:39:04 +00:00
|
|
|
bines="bin/gedcyg.exe bin/gncyg.exe bin/rddtcyg.exe"
|
|
|
|
files="${bines} docs/copying docs/copying.lib golded.bat"
|
2005-10-02 14:30:52 +00:00
|
|
|
files="${files} docs/golded.html docs/golded.txt docs/goldnode.html"
|
|
|
|
files="${files} docs/goldnode.txt docs/license.txt docs/notework.txt"
|
|
|
|
files="${files} docs/rddt.html docs/rddt.txt docs/readme.txt"
|
|
|
|
files="${files} docs/rusfaq.txt docs/tips.txt docs/todowork.txt"
|
|
|
|
files="${files} docs/tokencfg.txt docs/tokentpl.txt"
|
|
|
|
|
2006-10-04 20:12:31 +00:00
|
|
|
printf 'GoldED+1.1.5 [Win32 binaries]\r\n' >${dizfile}
|
|
|
|
printf '[Compiled using MinGW/Cygwin]\r\n' >>${dizfile}
|
|
|
|
printf 'Snapshot (development version)\r\n' >>${dizfile}
|
|
|
|
printf 'This is unstable release and\r\n' >>${dizfile}
|
|
|
|
printf 'it should be used for testing.\r\n' >>${dizfile}
|
2007-01-16 07:12:39 +00:00
|
|
|
printf -- '------------------------------\r\n' >>${dizfile}
|
2006-10-04 20:12:31 +00:00
|
|
|
printf 'GoldED+ is a successor of the\r\n' >>${dizfile}
|
|
|
|
printf 'wellknown GoldED mail editor.\r\n' >>${dizfile}
|
2007-01-16 07:12:39 +00:00
|
|
|
printf -- '------------------------------\r\n' >>${dizfile}
|
2006-10-04 20:12:31 +00:00
|
|
|
printf '*golded-plus.sourceforge.net* \r\n' >>${dizfile}
|
2005-10-02 14:30:52 +00:00
|
|
|
|
2006-01-18 21:36:01 +00:00
|
|
|
rm bin/*cyg.exe
|
2005-10-16 11:31:01 +00:00
|
|
|
make clean
|
2005-10-02 14:30:52 +00:00
|
|
|
make
|
|
|
|
make strip
|
|
|
|
make docs
|
2006-02-20 08:39:04 +00:00
|
|
|
|
|
|
|
for i in ${bines} ; do
|
2006-02-20 16:56:28 +00:00
|
|
|
if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; fi
|
2006-02-20 08:39:04 +00:00
|
|
|
done
|
|
|
|
|
2006-10-04 20:12:31 +00:00
|
|
|
zip -9DXj ${name} ${dizfile} $files
|
2010-03-14 18:44:24 +00:00
|
|
|
ln ${name} ${shortname} || cp ${name} ${shortname}
|