This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/dist-gpv.sh

52 lines
1.9 KiB
Bash
Raw Normal View History

#!/bin/sh
# Create a archive 'gpwin-*.zip' (gpvYMMDD.zip) with Win32 (MS Visual C)
# builg of the Golded+.
date=`date +%Y%m%d`
name=../gpwin-115-${date}.zip
2005-11-06 12:51:16 +00:00
shortdate=`echo ${date} | sed s/^...//`
shortname=../gpv${shortdate}.zip
dizfile=Release/bin/file_id.diz
2006-02-18 14:08:47 +00:00
echo Build a Golded+/w32mvc binary package: ${name} and ${shortname}
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
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
2006-02-20 08:39:04 +00:00
bines="Release/bin/gedwin.exe Release/bin/gnwin.exe Release/bin/rddtwin.exe"
files="${bines} docs/copying docs/copying.lib golded.bat"
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"
rm ${bines}
2005-10-09 06:31:17 +00:00
nmake /f golded.mak CFG="Release" clean
nmake /f golded.mak CFG="Release"
printf 'GoldED+1.1.5 [Win32 binaries]\r\n' >${dizfile}
printf '[Compiled using MS Visual C++]\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}
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}
printf ' *http://golded-plus.sf.net* \r\n' >>${dizfile}
make docs
2006-02-20 08:39:04 +00:00
for i in ${bines} ; do
if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; fi
2006-02-20 08:39:04 +00:00
done
zip -9DXj ${name} ${dizfile} $files
2010-03-14 18:44:24 +00:00
ln ${name} ${shortname} || cp ${name} ${shortname}