2005-10-29 14:44:10 +00:00
|
|
|
#!/bin/sh
|
2005-10-29 14:45:31 +00:00
|
|
|
# $Id$
|
2005-11-06 14:05:27 +00:00
|
|
|
# Create a archive 'gpd*.zip' (gpdYMMDD.zip) with DOS/DPMI (DJGPP) build
|
2005-10-29 14:44:10 +00:00
|
|
|
# of the Golded+.
|
|
|
|
|
2010-03-18 23:01:24 +00:00
|
|
|
# To build, download from http://www.delorie.com/pub/djgpp/current/ following files:
|
|
|
|
# djdev203.zip
|
|
|
|
# djtzn203.zip
|
|
|
|
# And from http://www.delorie.com/pub/djgpp/current/v2gnu/ following more files:
|
|
|
|
# bnu219a.zip
|
|
|
|
# bnu219b.zip
|
|
|
|
# bsh204br3.zip
|
|
|
|
# fil41b.zip
|
|
|
|
# gcc442b.zip
|
|
|
|
# gpp442b.zip
|
|
|
|
# grp251ab.zip
|
|
|
|
# gro116b.zip
|
|
|
|
# licv192b.zip
|
|
|
|
# mak3791b.zip
|
|
|
|
# sed421b.zip
|
2010-03-25 13:12:40 +00:00
|
|
|
# shl2011b.zip
|
2010-03-23 19:06:16 +00:00
|
|
|
# And from http://www.delorie.com/pub/djgpp/current/v2misc/ following more files:
|
|
|
|
# wmemu21b.zip
|
|
|
|
# And from http://www.delorie.com/pub/djgpp/current/v2tk/ following more files:
|
|
|
|
# llocl02b.zip
|
2010-03-18 23:01:24 +00:00
|
|
|
# Next extract all these files into one directory (for example, C:\DJGPP\)
|
|
|
|
# Next set enviroment variable DJGPP to C:\DJGPP\DJGPP.ENV
|
|
|
|
# Last add the directory "C:\DJGPP\" into PATH enviroment variable.
|
|
|
|
# After this, run bash dist-gpd.sh, edir golded3/mygolded.h and run dist-gpd.sh second time.
|
|
|
|
#
|
|
|
|
|
2005-10-29 14:44:10 +00:00
|
|
|
if [ ! "$OSTYPE" = "msdosdjgpp" ]
|
|
|
|
then
|
|
|
|
echo "This is not DJGPP enviroment, exit."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
date=`date +%Y%m%d`
|
|
|
|
shortdate=`echo ${date} | sed s/^...//`
|
|
|
|
name=../gpd${shortdate}.zip
|
|
|
|
dosname=..\\gpd${shortdate}.zip
|
|
|
|
file_id=bin/File_ID.Diz
|
|
|
|
|
2006-02-18 14:08:47 +00:00
|
|
|
echo Build a Golded+/DPMI 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 20:55:41 +00:00
|
|
|
#sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
|
2005-10-29 14:44:10 +00:00
|
|
|
|
2006-02-20 08:39:04 +00:00
|
|
|
bines="bin/geddjg.exe bin/gndjg.exe bin/rddtdjg.exe"
|
|
|
|
files="${bines} docs/copying docs/copying.lib golded.bat"
|
2005-10-29 14:44:10 +00:00
|
|
|
files="${files} docs/golded.html docs/golded.txt docs/goldnode.html"
|
|
|
|
files="${files} docs/goldnode.txt docs/license.txt docs/notework.txt"
|
2011-02-19 22:36:34 +00:00
|
|
|
files="${files} docs/rddt.html docs/rddt.txt docs/readme.txt docs/notework.rus"
|
2005-10-29 14:44:10 +00:00
|
|
|
files="${files} docs/rusfaq.txt docs/tips.txt docs/todowork.txt"
|
|
|
|
files="${files} docs/tokencfg.txt docs/tokentpl.txt ${file_id}"
|
|
|
|
|
|
|
|
echo 'GoldED+1.1.5 [DOS-DPMI binaries]' >${file_id}
|
|
|
|
echo '[Compiled using DJGPP GNU C/C++]' >>${file_id}
|
2007-05-03 09:52:20 +00:00
|
|
|
echo "Snapshot at ${date} (devel.ver.)" >>${file_id}
|
2005-10-29 14:44:10 +00:00
|
|
|
echo 'This is unstable release and it' >>${file_id}
|
|
|
|
echo 'should be used for testing purpose' >>${file_id}
|
|
|
|
echo '----------------------------------' >>${file_id}
|
2007-05-03 09:52:20 +00:00
|
|
|
echo 'GoldED+ is a successor of the' >>${file_id}
|
|
|
|
echo 'wellknown GoldED mail editor.' >>${file_id}
|
2007-01-16 07:14:27 +00:00
|
|
|
echo '----------------------------------' >>${file_id}
|
2005-10-29 14:44:10 +00:00
|
|
|
echo 'http://golded-plus.sourceforge.net' >>${file_id}
|
|
|
|
|
2006-02-20 08:39:04 +00:00
|
|
|
rm ${bines}
|
2006-01-18 21:36:01 +00:00
|
|
|
|
2005-10-29 14:45:31 +00:00
|
|
|
make PLATFORM=djg clean
|
|
|
|
make PLATFORM=djg
|
|
|
|
make PLATFORM=djg strip
|
2006-02-20 08:39:04 +00:00
|
|
|
make docs
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2005-10-29 14:44:10 +00:00
|
|
|
#zip -9DXj ${name} ${file_id} $files
|
|
|
|
#7za a -tzip ${name} ${file_id} $files
|
|
|
|
|
|
|
|
echo ${files} | sed "s/ /\n/g" >files.lst
|
|
|
|
pkzip ${dosname} @files.lst
|
2007-05-03 09:52:20 +00:00
|
|
|
rm files.lst
|