From 8db3a26bf79f6363e78a239069a5b9bc8c1fdf96 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sat, 1 Feb 2014 00:03:57 +0000 Subject: [PATCH] [misc] optimize for size * Tests show that it should have much impact on UFD creation speed and helps shave ~15KB with gcc 4.8.x * Also adjust the version nano so that it matches the number of commits seen by github * This means there is NO build 399 --- _pre-commit.sh | 4 ++-- _release.sh | 2 +- configure | 4 ++-- configure.ac | 4 ++-- src/rufus.rc | 12 ++++++------ 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/_pre-commit.sh b/_pre-commit.sh index 9fcda96b..7a3ef4f6 100644 --- a/_pre-commit.sh +++ b/_pre-commit.sh @@ -13,8 +13,8 @@ type -P sed &>/dev/null || { echo "sed command not found. Aborting." >&2; exit 1 type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; } VER=`git log --oneline | wc -l` -# trim spaces -TAGVER=`echo $VER` +# adjust so that we match the github commit count +TAGVER=`expr $VER + 1` # there may be a better way to prevent improper nano on amend. For now the detection # of a .amend file in the current directory will do if [ -f ./.amend ]; then diff --git a/_release.sh b/_release.sh index 129ac6cd..b4c9d2ae 100644 --- a/_release.sh +++ b/_release.sh @@ -1,5 +1,5 @@ #!/bin/sh rm -f rufus*.exe -./configure +./configure --disable-debug make clean make release diff --git a/configure b/configure index 54f0ad1d..1a43d392 100644 --- a/configure +++ b/configure @@ -3522,9 +3522,9 @@ else fi if test "x$debug_enabled" != "xno" ; then - CFLAGS="-g -O2" + CFLAGS="-g -O0" else - CFLAGS="-O2" + CFLAGS="-Os" LDFLAGS="-s" fi diff --git a/configure.ac b/configure.ac index 1624e16c..92aa700c 100644 --- a/configure.ac +++ b/configure.ac @@ -29,9 +29,9 @@ AC_ARG_ENABLE([debug], [debug_enabled=$enableval], [debug_enabled='yes']) if test "x$debug_enabled" != "xno" ; then - CFLAGS="-g -O2" + CFLAGS="-g -O0" else - CFLAGS="-O2" + CFLAGS="-Os" LDFLAGS="-s" fi diff --git a/src/rufus.rc b/src/rufus.rc index bc22495f..82ca2efd 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -32,7 +32,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 206, 329 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Rufus 1.4.4.398" +CAPTION "Rufus 1.4.4.400" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "Start",IDC_START,94,291,50,14 @@ -165,7 +165,7 @@ END RTL_IDD_DIALOG DIALOGEX 12, 12, 206, 329 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_RTLREADING | WS_EX_APPWINDOW | WS_EX_LAYOUTRTL -CAPTION "Rufus 1.4.4.398" +CAPTION "Rufus 1.4.4.400" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "Start",IDC_START,94,291,50,14 @@ -427,8 +427,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,4,4,398 - PRODUCTVERSION 1,4,4,398 + FILEVERSION 1,4,4,400 + PRODUCTVERSION 1,4,4,400 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -445,13 +445,13 @@ BEGIN BEGIN VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "1.4.4.398" + VALUE "FileVersion", "1.4.4.400" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2014 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" VALUE "OriginalFilename", "rufus.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "1.4.4.398" + VALUE "ProductVersion", "1.4.4.400" END END BLOCK "VarFileInfo"