Fix building scripts: create mygolded.h if it's not exists

This commit is contained in:
Stas Degteff 2006-02-18 15:23:03 +00:00
parent e0a14e941d
commit 1c0ecf3e4a
5 changed files with 15 additions and 0 deletions

View File

@ -17,6 +17,9 @@ file_id=bin/File_ID.Diz
echo Build a Golded+/DPMI binary package: ${name} and ${shortname} echo Build a Golded+/DPMI binary package: ${name} and ${shortname}
if [ ! -f golded3/mygolded.h ]; then
cp golded3/mygolded.__h golded3/mygolded.h
fi
sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
files="bin/geddjg.exe bin/gndjg.exe bin/rddtdjg.exe" files="bin/geddjg.exe bin/gndjg.exe bin/rddtdjg.exe"

View File

@ -10,6 +10,9 @@ name=../gpl115-${date}.zip
echo Build a Golded+/lnx binary package: ${name} and ${shortname} echo Build a Golded+/lnx binary package: ${name} and ${shortname}
if [ ! -f golded3/mygolded.h ]; then
cp golded3/mygolded.__h golded3/mygolded.h
fi
sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
files="bin/gedlnx bin/gnlnx bin/rddtlnx" files="bin/gedlnx bin/gnlnx bin/rddtlnx"

View File

@ -10,6 +10,9 @@ shortname=../gpv${shortdate}.zip
echo Build a Golded+/w32mvc binary package: ${name} and ${shortname} echo Build a Golded+/w32mvc binary package: ${name} and ${shortname}
if [ ! -f golded3/mygolded.h ]; then
cp golded3/mygolded.__h golded3/mygolded.h
fi
sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
files="Release/bin/gedwin.exe Release/bin/gnwin.exe Release/bin/rddtwin.exe" files="Release/bin/gedwin.exe Release/bin/gnwin.exe Release/bin/rddtwin.exe"

View File

@ -16,6 +16,9 @@ shortname=../gpw${shortdate}.zip
echo Build a Golded+/w32mingw binary package: ${name} and ${shortname} echo Build a Golded+/w32mingw binary package: ${name} and ${shortname}
if [ ! -f golded3/mygolded.h ]; then
cp golded3/mygolded.__h golded3/mygolded.h
fi
sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
files="bin/gedcyg.exe bin/gncyg.exe bin/rddtcyg.exe" files="bin/gedcyg.exe bin/gncyg.exe bin/rddtcyg.exe"

View File

@ -12,6 +12,9 @@ pkgname=golded-plus-x86-115-${date}.pkg
echo Build a Golded+/sunX86 binary package: ${name} (${pkgname}) echo Build a Golded+/sunX86 binary package: ${name} (${pkgname})
if [ ! -f golded3/mygolded.h ]; then
cp golded3/mygolded.__h golded3/mygolded.h
fi
gsed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h gsed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h
printf "GoldED+1.1.5 [`uname` `uname -i` pkg]\r\n" >bin/File_ID.Diz printf "GoldED+1.1.5 [`uname` `uname -i` pkg]\r\n" >bin/File_ID.Diz