Skip to content
Permalink
Browse files

Update to version 7.3. Add script to modify version.

  • Loading branch information...
matlo committed Apr 13, 2018
1 parent 1441402 commit 216104793567cea196224c7c1235abb952782930
Showing with 43 additions and 13 deletions.
  1. +4 −4 config/config.rc
  2. +4 −4 fpsconfig/fpsconfig.rc
  3. +1 −1 info.h
  4. +4 −4 launcher/launcher.rc
  5. +30 −0 version.sh
@@ -1,20 +1,20 @@
1 ICON "config.ico"
1 VERSIONINFO
FILEVERSION 0,51,0,0
PRODUCTVERSION 0,51,0,0
FILEVERSION 7,3,0,0
PRODUCTVERSION 7,3,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "MatLauLab"
VALUE "FileDescription", "Config editor for GIMX"
VALUE "FileVersion", "0.51"
VALUE "FileVersion", "7.3"
VALUE "InternalName", "gimx-config"
VALUE "LegalCopyright", "Matlo GNU GPL"
VALUE "OriginalFilename", "gimx-config.exe"
VALUE "ProductName", "gimx-config"
VALUE "ProductVersion", "0.51"
VALUE "ProductVersion", "7.3"
END
END
BLOCK "VarFileInfo"
@@ -1,20 +1,20 @@
1 ICON "fpsconfig.ico"
1 VERSIONINFO
FILEVERSION 0,51,0,0
PRODUCTVERSION 0,51,0,0
FILEVERSION 7,3,0,0
PRODUCTVERSION 7,3,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "MatLauLab"
VALUE "FileDescription", "FPS config editor for GIMX"
VALUE "FileVersion", "0.51"
VALUE "FileVersion", "7.3"
VALUE "InternalName", "gimx-fpsconfig"
VALUE "LegalCopyright", "Matlo GNU GPL"
VALUE "OriginalFilename", "gimx-fpsconfig.exe"
VALUE "ProductName", "gimx-fpsconfig"
VALUE "ProductVersion", "0.51"
VALUE "ProductVersion", "7.3"
END
END
BLOCK "VarFileInfo"
2 info.h
@@ -1,7 +1,7 @@
#ifndef INFO_H_
#define INFO_H_

#define INFO_VERSION "7.2"
#define INFO_VERSION "7.3"
#define INFO_YEAR "2010-2018"
#define INFO_DEV "Matlo"
#define INFO_WEB "http://gimx.fr"
@@ -1,20 +1,20 @@
1 ICON "launcher.ico"
1 VERSIONINFO
FILEVERSION 0,51,0,0
PRODUCTVERSION 0,51,0,0
FILEVERSION 7,3,0,0
PRODUCTVERSION 7,3,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "MatLauLab"
VALUE "FileDescription", "GIMX launcher"
VALUE "FileVersion", "0.51"
VALUE "FileVersion", "7.3"
VALUE "InternalName", "gimx-launcher"
VALUE "LegalCopyright", "Matlo GNU GPL"
VALUE "OriginalFilename", "gimx-launcher.exe"
VALUE "ProductName", "gimx-launcher"
VALUE "ProductVersion", "0.51"
VALUE "ProductVersion", "7.3"
END
END
BLOCK "VarFileInfo"
@@ -0,0 +1,30 @@
#!/bin/bash

echo "Version number? (format is X.Y)"

read NEW_VERSION

if [ -z $NEW_VERSION ]
then
echo No version specified!
exit
fi

MAJOR=$(echo $NEW_VERSION | awk -F"." '{print $1}')
MINOR=$(echo $NEW_VERSION | awk -F"." '{print $2}')
echo Major release number: $MAJOR
echo Minor release number: $MINOR
if [ -z $MAJOR ] || [ -z $MINOR ]
then
echo Invalid release number!
exit
fi

sed -i "s/FILEVERSION[ ]*[0-9]*,[0-9]*,[0-9]*,[0-9]*/FILEVERSION $MAJOR,$MINOR,0,0/" */*.rc
sed -i "s/PRODUCTVERSION[ ]*[0-9]*,[0-9]*,[0-9]*,[0-9]*/PRODUCTVERSION $MAJOR,$MINOR,0,0/" */*.rc
sed -i "s/[ ]*VALUE[ ]*\"FileVersion\",[ ]*\"[0-9]*.[0-9]*\"/ VALUE \"FileVersion\", \"$MAJOR.$MINOR\"/" */*.rc
sed -i "s/[ ]*VALUE[ ]*\"ProductVersion\",[ ]*\"[0-9]*.[0-9]*\"/ VALUE \"ProductVersion\", \"$MAJOR.$MINOR\"/" */*.rc

sed -i "s/#define[ ]*INFO_VERSION[ ]*\"[0-9]*.[0-9]*\"/#define INFO_VERSION \"$MAJOR.$MINOR\"/" info.h
sed -i "s/#define[ ]*INFO_YEAR[ ]*\"2010-[0-9]*\"/#define INFO_YEAR \"2010-$(date '+%Y')\"/" info.h

0 comments on commit 2161047

Please sign in to comment.
You can’t perform that action at this time.