diff --git a/dist-gpd.sh b/dist-gpd.sh index a65f084..eee5fca 100755 --- a/dist-gpd.sh +++ b/dist-gpd.sh @@ -22,8 +22,8 @@ if [ ! -f golded3/mygolded.h ]; then fi 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="${files} docs/copying docs/copying.lib golded.bat" +bines="bin/geddjg.exe bin/gndjg.exe bin/rddtdjg.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" @@ -38,12 +38,17 @@ echo 'should be used for testing purpose' >>${file_id} echo '----------------------------------' >>${file_id} echo 'http://golded-plus.sourceforge.net' >>${file_id} -rm bin/*djg.exe +rm ${bines} make PLATFORM=djg clean make PLATFORM=djg make PLATFORM=djg strip -#make docs +make docs + +for i in ${bines} ; do + if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; done +done + #zip -9DXj ${name} ${file_id} $files #7za a -tzip ${name} ${file_id} $files diff --git a/dist-gpl.sh b/dist-gpl.sh index d2c57a6..a368453 100755 --- a/dist-gpl.sh +++ b/dist-gpl.sh @@ -15,8 +15,8 @@ if [ ! -f golded3/mygolded.h ]; then fi sed -i.orig -e "s/\#define __GVER_POSTVERSION__ .*/\#define __GVER_POSTVERSION__ \"-b${date}\"/" golded3/mygolded.h -files="bin/gedlnx bin/gnlnx bin/rddtlnx" -files="${files} docs/copying docs/copying.lib" +bines="bin/gedlnx bin/gnlnx bin/rddtlnx" +files="${bines} docs/copying docs/copying.lib" 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" @@ -37,5 +37,10 @@ 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 ; done +done + zip -9DXj ${name} bin/File_ID.Diz $files cp ${name} ${shortname} diff --git a/dist-gpv.sh b/dist-gpv.sh index 025df98..8769eae 100755 --- a/dist-gpv.sh +++ b/dist-gpv.sh @@ -15,8 +15,8 @@ if [ ! -f golded3/mygolded.h ]; then fi 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="${files} docs/copying docs/copying.lib golded.bat" +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" @@ -38,5 +38,10 @@ printf '------------------------------\r\n' >>Release/bin/File_ID.Diz printf ' *http://golded-plus.sf.net* \r\n' >>Release/bin/File_ID.Diz make docs + +for i in ${bines} ; do + if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; done +done + zip -9DXj ${name} Release/bin/File_ID.Diz $files cp ${name} ${shortname} diff --git a/dist-gpw.sh b/dist-gpw.sh index 271a02b..53cb25f 100755 --- a/dist-gpw.sh +++ b/dist-gpw.sh @@ -21,8 +21,8 @@ if [ ! -f golded3/mygolded.h ]; then fi 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="${files} docs/copying docs/copying.lib golded.bat" +bines="bin/gedcyg.exe bin/gncyg.exe bin/rddtcyg.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" @@ -45,5 +45,10 @@ make clean make make strip make docs + +for i in ${bines} ; do + if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; done +done + zip -9DXj ${name} bin/File_ID.Diz $files cp ${name} ${shortname} diff --git a/dist-sx86.sh b/dist-sx86.sh index 9417c66..c436f30 100755 --- a/dist-sx86.sh +++ b/dist-sx86.sh @@ -36,6 +36,10 @@ cd docs gmake tokentpl.txt tokencfg.txt cd .. +for i in bin/gedsun bin/gnsun bin/rddtsun ; do + if [ ! -f ${i} ] ; then echo "File ${i} not exists, stop!"; exit 1 ; done +done + # creating package if [ -d "$pkgdir" ] ; then rm -rf $pkgdir ; fi mkdir $pkgdir