2005-11-06 12:50:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2005-11-06 14:05:27 +00:00
|
|
|
# Create a archive 'gpl-*.zip' (gplYMMDD.zip) with binary linux build
|
2005-11-06 12:50:23 +00:00
|
|
|
# of the Golded+.
|
|
|
|
|
|
|
|
date=`date +%Y%m%d`
|
|
|
|
shortdate=`echo ${date} | sed s/^...//`
|
|
|
|
shortname=../gpl${shortdate}.zip
|
2005-11-26 01:29:49 +00:00
|
|
|
name=../gpl115-${date}.zip
|
2005-11-06 12:50:23 +00:00
|
|
|
|
2006-02-18 14:08:47 +00:00
|
|
|
echo Build a Golded+/lnx 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:02:43 +00:00
|
|
|
#sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
|
2005-11-06 12:50:23 +00:00
|
|
|
|
2006-02-20 08:39:04 +00:00
|
|
|
bines="bin/gedlnx bin/gnlnx bin/rddtlnx"
|
2007-01-01 21:21:53 +00:00
|
|
|
files="${bines} docs/copying docs/copying.lib bin/requirements.txt"
|
2010-11-09 22:03:07 +00:00
|
|
|
files="${files} bin/golded bin/openbsd-vt220.sh"
|
2005-11-06 12:50:23 +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"
|
2007-01-01 19:02:29 +00:00
|
|
|
files="${files} docs/rusfaq.txt docs/rusfaq.koi8r docs/rusfaq.utf8 docs/tips.txt docs/todowork.txt"
|
|
|
|
files="${files} docs/tokencfg.txt docs/tokentpl.txt bin/requirements.txt"
|
|
|
|
files="${files} docs/notework.rus docs/notework.koi8r docs/notework.utf8"
|
2005-11-06 12:50:23 +00:00
|
|
|
|
2006-03-12 17:07:10 +00:00
|
|
|
printf "GoldED+1.1.5 [`uname` binaries]\r\n" >bin/File_ID.Diz
|
2005-11-06 12:50:23 +00:00
|
|
|
printf 'Snapshot (development version)\r\n' >>bin/File_ID.Diz
|
|
|
|
printf 'This is unstable release and\r\n' >>bin/File_ID.Diz
|
|
|
|
printf 'it should be used for testing.\r\n' >>bin/File_ID.Diz
|
2006-03-12 17:07:10 +00:00
|
|
|
printf -- '------------------------------\r\n' >>bin/File_ID.Diz
|
2005-11-06 12:50:23 +00:00
|
|
|
printf 'GoldED+ is a successor of the\r\n' >>bin/File_ID.Diz
|
|
|
|
printf 'wellknown GoldED mail editor.\r\n' >>bin/File_ID.Diz
|
2006-03-12 17:07:10 +00:00
|
|
|
printf -- '------------------------------\r\n' >>bin/File_ID.Diz
|
2005-11-06 12:50:23 +00:00
|
|
|
printf '*golded-plus.sourceforge.net* \r\n' >>bin/File_ID.Diz
|
|
|
|
|
|
|
|
make PLATFORM=lnx clean
|
|
|
|
make PLATFORM=lnx
|
|
|
|
make PLATFORM=lnx 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
|
|
|
|
|
2007-01-01 19:02:29 +00:00
|
|
|
iconv -c -f cp866 -t koi8-r docs/rusfaq.txt | sed 2s/cp866/koi8-r/ >docs/rusfaq.koi8r
|
|
|
|
iconv -c -f cp866 -t utf8 docs/rusfaq.txt | sed 2s/cp866/utf-8/ >docs/rusfaq.utf8
|
|
|
|
|
|
|
|
iconv -c -f cp866 -t koi8-r docs/notework.rus | sed 2s/cp866/koi8-r/ >docs/notework.koi8r
|
|
|
|
iconv -c -f cp866 -t utf8 docs/notework.rus | sed 2s/cp866/utf-8/ >docs/notework.utf8
|
|
|
|
|
|
|
|
echo Required libraries: >bin/requirements.txt
|
|
|
|
ldd bin/gedlnx | sed -e "s/ =.*//" -e /\\/lib\\//d -e "s/\\.so\\./ /" >>bin/requirements.txt
|
|
|
|
|
2005-11-06 12:50:23 +00:00
|
|
|
zip -9DXj ${name} bin/File_ID.Diz $files
|
2010-03-14 18:44:24 +00:00
|
|
|
ln ${name} ${shortname} || cp ${name} ${shortname}
|