changeset 425:d88e5695f45e

Updated the build scripts to correctly copy and create the man page. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@660 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Fri, 28 Mar 2008 22:44:51 +0000
parents a050870b60b6
children 041e28575b3d
files UniversalIndentGUI.pro buildRelease.sh buildSrcRelease.bat
diffstat 3 files changed, 20 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/UniversalIndentGUI.pro	Fri Mar 28 11:32:54 2008 +0000
+++ b/UniversalIndentGUI.pro	Fri Mar 28 22:44:51 2008 +0000
@@ -69,7 +69,7 @@
     unix:system(rm ./doc/universalindentgui.1*)
 }
 unix:system(cp ./doc/universalindentgui.man ./doc/universalindentgui.1)
-unix:system(gzip ./doc/universalindentgui.1)
+unix:system(gzip -9 ./doc/universalindentgui.1)
 unix:documentation.path = /usr/share/man/man1
 unix:documentation.files = doc/universalindentgui.1.gz
 
--- a/buildRelease.sh	Fri Mar 28 11:32:54 2008 +0000
+++ b/buildRelease.sh	Fri Mar 28 22:44:51 2008 +0000
@@ -211,6 +211,16 @@
 echo ""
 
 
+echo "Copying man page to target dir"
+echo "------------------------------"
+cp ./doc/universalindentgui.man ./$targetDir/doc/ &> /dev/null
+if [ $? -gt 0 ]; then
+    echo "ERROR: Could not copy file \"/doc/universalindentgui.man\"!"
+    exit 1
+fi
+echo "Done"
+echo ""
+
 ###################### source release end ########################
 else
 ###################### binary release begin ########################
--- a/buildSrcRelease.bat	Fri Mar 28 11:32:54 2008 +0000
+++ b/buildSrcRelease.bat	Fri Mar 28 22:44:51 2008 +0000
@@ -1,6 +1,6 @@
 @echo off
 
-set targetname=universalindentgui-0.8.0
+set targetname=universalindentgui-0.8.1
 
 echo Making some environment settings
 echo --------------------------------
@@ -36,21 +36,16 @@
 
 echo Updating translation files
 echo --------------------------
-lupdate UniversalIndentGUI.pro -silent
-IF ERRORLEVEL 1 goto ERROR
+::lupdate UniversalIndentGUI.pro -silent
+::IF ERRORLEVEL 1 goto ERROR
 echo Done.
 echo.
 
+
 echo Copying the indenter uigui ini files to the release indenters dir
 echo -----------------------------------------------------------------
-FOR %%A IN ( uigui_astyle.ini, uigui_bcpp.ini, uigui_csstidy.ini, uigui_gnuindent.ini, uigui_greatcode.ini, uigui_jsdecoder.ini, uigui_perltidy.ini, uigui_phpCB.ini, uigui_shellindent.ini, uigui_tidy.ini, uigui_uncrustify.ini ) DO (
-    if not exist .\indenters\%%A (
-        echo File .\indenters\%%A not found!
-        goto ERROR
-    )
-    copy .\indenters\%%A .\%targetname%\indenters\ >NUL
-    IF ERRORLEVEL 1 goto ERROR
-)
+copy .\indenters\uigui_*.ini .\%targetname%\indenters\ >NUL
+IF ERRORLEVEL 1 goto ERROR
 echo Done.
 echo.
 
@@ -125,8 +120,8 @@
 echo Done.
 echo.
 
-echo Copying doc and UniversalIndentGUI.exe to release dir
-echo -----------------------------------------------------
+echo Copying doc to release dir
+echo --------------------------
 copy .\doc\iniFileFormat.html .\%targetname%\doc\ >NUL
 IF ERRORLEVEL 1 goto ERROR
 echo Done.
@@ -139,8 +134,8 @@
 del %targetname%.tar.gz >NUL
 7z.exe a -ttar %targetname%.tar %targetname% >NUL
 7z.exe a -tgzip %targetname%.tar.gz %targetname%.tar >NUL
+IF ERRORLEVEL 1 goto ERROR
 del %targetname%.tar >NUL
-IF ERRORLEVEL 1 goto ERROR
 rem cd ..
 echo Done.
 echo.