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-gpl.sh
2007-01-01 21:21:53 +00:00

59 lines
2.4 KiB
Bash
Executable File

#!/bin/sh
# Create a archive 'gpl-*.zip' (gplYMMDD.zip) with binary linux build
# of the Golded+.
date=`date +%Y%m%d`
shortdate=`echo ${date} | sed s/^...//`
shortname=../gpl${shortdate}.zip
name=../gpl115-${date}.zip
echo Build a Golded+/lnx binary package: ${name} and ${shortname}
if [ ! -f golded3/mygolded.h ]; then
cp golded3/mygolded.__h golded3/mygolded.h
echo "golded3/mygolded.h is created now. Please edit this file"
exit 1
fi
sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
bines="bin/gedlnx bin/gnlnx bin/rddtlnx"
files="${bines} docs/copying docs/copying.lib bin/requirements.txt"
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/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"
printf "GoldED+1.1.5 [`uname` binaries]\r\n" >bin/File_ID.Diz
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
printf -- '------------------------------\r\n' >>bin/File_ID.Diz
printf 'GoldED+ is a successor of the\r\n' >>bin/File_ID.Diz
printf 'wellknown GoldED mail editor.\r\n' >>bin/File_ID.Diz
printf -- '------------------------------\r\n' >>bin/File_ID.Diz
printf '*golded-plus.sourceforge.net* \r\n' >>bin/File_ID.Diz
make PLATFORM=lnx clean
make PLATFORM=lnx
make PLATFORM=lnx strip
make docs
for i in ${bines} ; do
if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; fi
done
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
zip -9DXj ${name} bin/File_ID.Diz $files
cp ${name} ${shortname}