I have made a little patch for autoversioning.
-Ubuntu style version now declared as string instead of double.
-Added more possible causes to the svn error message box.
-Removed license file from unix project file.
I will work later to add an AV_ prefix to the declarations on C mode, since somebody wrote about conflicts with some linux headers or something like that with the date declaration.
Index: AutoVersioning.cpp
===================================================================
--- AutoVersioning.cpp (revision 5189)
+++ AutoVersioning.cpp (working copy)
@@ -571,7 +571,7 @@
actualDate.Format(_T("%y")).ToLong(&ubuntuYearNumber);
wxString ubuntuYear;
ubuntuYear.Printf(_T("%d"),ubuntuYearNumber);
- headerOutput << _T("\t") << _T("static const double UBUNTU_VERSION_STYLE = ") << ubuntuYear << actualDate.Format(_T(".%m")) << _T(";\n");
+ headerOutput << _T("\t") << _T("static const char UBUNTU_VERSION_STYLE[] = \"") << ubuntuYear << actualDate.Format(_T(".%m\"")) << _T(";\n");
headerOutput << _T("\t") << _T("\n");
}
@@ -612,7 +612,7 @@
{
wxString revision,date;
if (!QuerySvn(cbC2U(GetConfig().Settings.SvnDirectory.c_str()), revision, date))
- wxMessageBox(_("Svn configuration files not found.\nVerify the Autoversioning svn directory."),_("Error"),wxICON_ERROR);
+ wxMessageBox(_("Possible Causes:\n-You don't have SVN installed.\n-Incompatible version of SVN.\n-SVN configuration files not found.\n\nVerify the Autoversioning svn directory."),_("SVN Error"),wxICON_ERROR);
headerOutput << _T("\t") << _T("\n");
headerOutput << _T("\t") << _T("//SVN Version") << _T("\n");
headerOutput << _T("\t") << _T("static const char SVN_REVISION[] = ") << _T("\"") + revision + _T("\"")<< _T(";\n");
Index: AutoVersioning-unix.cbp
===================================================================
--- AutoVersioning-unix.cbp (revision 5189)
+++ AutoVersioning-unix.cbp (working copy)
@@ -46,7 +46,6 @@
<Unit filename="avSvnRevision.h" />
<Unit filename="avVersionEditorDlg.cpp" />
<Unit filename="avVersionEditorDlg.h" />
- <Unit filename="license.txt" />
<Unit filename="manifest.xml" />
<Extensions>
<code_completion />
[attachment deleted by admin]