Commit Graph

176 Commits (a30a8d21ce46c8e206cc9158e4384834f29f517e)

Author SHA1 Message Date
cybersphinx a30a8d21ce Replace svn with vcs. 2011-03-06 19:23:33 +01:00
cybersphinx d2eb159216 Get rid of the SVN_WC_SWITCHED stuff. 2011-03-06 18:57:12 +01:00
cybersphinx 809d0ac456 Get rid of the SVN_LOW_REV stuff. 2011-03-06 18:46:38 +01:00
cybersphinx dd4391990d Get rid of a few unnecessary Makefile.ams. 2010-12-11 16:41:57 +01:00
cybersphinx f378c9eb2d Move download.pl from build_tools to win32. 2010-12-11 16:21:08 +01:00
buginator c617bfd26c MSVC only change, using STLport to bypass the severe performance
hits with MSVC's STL code.

The change does *not* break MS's STL usage, so you can freely swap
between both of them.

When adding STL functions, it is best you use MS's STL for the extra
debugging code they throw in, it actually does catch some errors.
Once you don't need the extra debugging code, then I use STLport, since
MS's STL code can't disable all the checks, and it has a huge performance
hit.
2010-12-05 13:59:40 -05:00
cybersphinx 24f204863c Update changelog formatting script for git commit hashes.
sed magic by Kreuvf.
2010-11-07 19:15:28 +01:00
Cyp 4c28815937 Add defaults to autorevision.cpp for when not in a git repository. 2010-11-01 19:16:18 +01:00
Cyp 3f5176be49 Fix "(modified locally)".
Was hard to see it was broken, since the po/ directory keeps getting modified, so "(modified locally)" is often correct.
2010-11-01 13:34:07 +01:00
Cyp 242fa66dd9 Add fallback to -42, if git rev-list doesn't support --count.
The --count option was introduced in f69c501832ecd6880602c55565508e70c3a013d5 in git v1.7.2-rc1.
2010-10-28 16:44:07 +02:00
Cyp 0ee3a2147b Add version stuff for mac, and shorten version display in-game to a 7 char hash. 2010-10-27 19:43:18 +02:00
Cyp ef4b894202 Make autorevision.cpp print Git commit SHA1s. 2010-10-07 14:40:12 +02:00
Buginator edb644a03b Fix (and add missing) headers to files.
2009  Warzone Resurrection Project -> 2010  Warzone 2100 Project

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11298 4a71c877-e1ca-e34f-864e-861f7616d084
2010-07-28 18:58:33 +02:00
Christian Ohm cf8976e36e Improve the changelog script.
Change all items to [*], and enclose them in list tags. Just one thing needs to
be done manually, moving the "[/list]" tag at the beginning to the end.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10968 4a71c877-e1ca-e34f-864e-861f7616d084
2010-06-13 11:24:14 +02:00
Per Inge Mathisen a7e9da6ed5 Revert r10627 since it turned out to be not quite purely cosmetic after all
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10640 4a71c877-e1ca-e34f-864e-861f7616d084
2010-04-19 12:52:42 +02:00
Steven Koenig 78ff8a4d1c ChangeLog2BBCode Converter script now
* uses /bin/sh instead of /bin/bash,
 * uses -r (GNU extension, tell me, if we do not want this!) so we have less backslashes,
 * uses | as a separator now, so / does not need to be escaped,
 * does not escape characters that do not need to be escaped (spaces) and therefore
 * has an overall improved readability.
There should not be any changes to the behaviour/actions of sed, it is a purely cosmetic commit.



git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10627 4a71c877-e1ca-e34f-864e-861f7616d084
2010-04-18 20:21:18 +02:00
Per Inge Mathisen c29aa0836e First version of a changelog-to-bbcode conversion script. Pipe a portion of the changelog through to get bbcode.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10622 4a71c877-e1ca-e34f-864e-861f7616d084
2010-04-18 20:21:18 +02:00
Christian Ohm b0c4e40934 Include files needed for win32 cross-building.
Building from tarball still doesn't work, since nsis wants the gmo files in the
build dir while they are in the source dir.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9146 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Giel van Schijndel 115d2bfd2c Windows cross compilation scripts
* redo the cross compilation script in such a way that it'll also automatically fetch (wget) and build the dependencies
  - Currently only building of popt, gettext, zlib and png is implemented

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8821 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:55 +01:00
Christian Ohm 55f12a5d52 Hurd build fixes.
Closes #969.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8706 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:44 +01:00
Buginator efce1fc4cb Get rid of the code-generators that was used for the SQL stuff.
(r8367)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8484 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 20:11:00 +01:00
Christian Ohm 553fca0df7 Put autorevision.h into builddir, not srcdir.
Contrary to 2.2, "make distcheck" doesn't work yet, since some files in
tools/map that tests/maptest.c needs are not packaged in the tarball.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8361 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:56 +01:00
Per Inge Mathisen b29e9eeba1 Fix compile error on *BSD systems. Closes ticket:820, patch by brad@comstyle.com
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8016 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:10 +02:00
Giel van Schijndel 8f7322f717 Improve buildsystem for cross compiling
* Make sure to pass CXXFLAGS to ./configure as well
 * Allow for overriding of CFLAGS and CXXFLAGS when building for the building system
  - CFLAGS_FOR_BUILD
  - CXXFLAGS_FOR_BUILD

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7283 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-06 22:29:34 +02:00
Gerard Krol 71bc279c9e Fix some spelling errors in debug messages and comments. Patch by Paul Wise <pabs3>.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6832 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-11 11:51:40 +00:00
Per Inge Mathisen 42d5809ae5 Move the RPM spec file where it belongs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6800 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-07 20:46:49 +00:00
Per Inge Mathisen 0fc9820f4a Add RPM spec file for building Warzone. Tested on Fedora 10.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6791 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-07 17:21:18 +00:00
Giel van Schijndel ab5e599100 Don't use the deprecated git-$command interface anymore, instead use "git $command"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6707 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-22 23:42:07 +00:00
Giel van Schijndel 6e1d019403 * Update SQLite stats database
* Fix loading of stats from the SQLite database (utilised in the campaign)

This fixes #276 and #269.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6670 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-21 21:09:37 +00:00
Giel van Schijndel 4d150cfcc8 Remove testing code which is no longer needed (because src/stats-db2.* serves the same purpose now)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6650 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-15 13:05:19 +00:00
Giel van Schijndel d862f39362 Don't add a separating comma if we've already printed the last column definition
This was done when we'd have a C-only-field.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6649 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-15 12:46:45 +00:00
Giel van Schijndel 57de43c140 * Generate CREATE VIEW statements in the SQL schema
* Use these VIEWs instead of rather complicated SELECT statements in the C SQLite loading code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6646 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-15 12:32:29 +00:00
Dennis Schridde aac41748dc Bump copyright
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6617 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-10 18:01:48 +00:00
Giel van Schijndel 1f4e369cf2 * Add a new struct-level qualifier: %csv-field-override
- This qualifier allows overriding of CSV field numbers given in base classes
  - This is required for the WEAPON stats because it differs from most other stats in that it doesn't have the "designable" field as the last CSV field
 * Specify all CSV field numbers for the fields in struct WEAPON
 * Generate SQL INSERT statements from weapons.txt


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6553 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-22 22:18:48 +00:00
Giel van Schijndel 3d92823e49 * Use the more readable $arrayreference->[$index] and $hashreference->{$key} instead of ${$arrayreference}[$index] and ${$hashreference}{$key} respectively
* Use 'my $var = $expression || "";' instead of 'my $var = ""; $var = $expression if $expression;'

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6366 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-23 13:32:02 +00:00
Giel van Schijndel 8f6eb3c17c Use || as shortcut operator (I used "or" before, which didn't work as expected due to having a too low precedence) in assignment to $valprefix and $valsuffix to circumvent having to test explicitly whether they exist
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6365 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-23 00:18:12 +00:00
Giel van Schijndel d11d2411bd * Prevent writing to regex-capture variables, e.g. \$1
- Use a temporary variable instead


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6346 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-17 08:51:07 +00:00
Giel van Schijndel fb91a247d5 Handle C-only-fields properly when they're at the end of a struct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6341 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 17:43:32 +00:00
Giel van Schijndel bec2172caa Allow passing of multiple strings for an enum value
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6339 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 17:25:40 +00:00
Giel van Schijndel 83b2440a3d Don't produce lines filled with only spaces (produce an empty one instead)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6336 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 16:28:20 +00:00
Giel van Schijndel 167510f3e7 * Add the option to specify custom string values for enums (which are * used when processing the database contents)
- New enum-field level qualifier: `%string "<string to use>";`
 * Use this to specify the custom strings for enum SENSOR_TYPE

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6335 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 16:28:17 +00:00
Giel van Schijndel 27856b5de5 * Make sure to wrap the produced SQL INSERT statements in a TRANSACTION
* At the start of a new struct's data place the name of that struct

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6333 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 16:28:12 +00:00
Giel van Schijndel 5dc4adb8d5 Add Doxygen comments to the produced STATS_(BASE|COMPONENT) macros as well, to give Doxygen a chance to properly document structures that use these macros
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6329 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 14:08:23 +00:00
Giel van Schijndel 4e43102df3 Add the ability to retrieve the current row number by means of $rowNum
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6324 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 03:33:43 +00:00
Giel van Schijndel 47eb9bd6bc * Make sure to use "FROM" before "INNER JOIN"
* Assign the return value of sqlite3_step to "rc" not the result boolean of that return value compared with SQLITE_ROW
 * For enums allow the enumerator's name with undersquores ''and'' spaces


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6323 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 03:08:04 +00:00
Giel van Schijndel 1835d9aa04 Add a new code generator to generate a series of INSERT statements from the CSV files to fill a database with
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6322 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 02:20:42 +00:00
Giel van Schijndel 4b0072ffb5 * Remove unused parameters
* Remove duplicated code


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6321 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 02:18:53 +00:00
Giel van Schijndel 001f2f90ea Store enums as text
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6318 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 01:41:48 +00:00
Giel van Schijndel 8a8bc660ee Use string comparison for enums instead of stuffing integers in the database
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6317 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 01:20:02 +00:00
Giel van Schijndel 91dbb225df Use .schema.sql as default output extension for SQL CREATE TABLE definitions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6314 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-16 00:22:10 +00:00