Commit Graph

51 Commits

Author SHA1 Message Date
Kevin Shanahan d42b6a062c TyrUtils v0.9
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-24 09:05:15 +09:30
Kevin Shanahan 4c6142e97f qbsp: use the common logfile code
Not too intrusive, since the Message() layer still acts as a shim
here.  Most of the changes are for the Makefile.  Qbsp now links to
the threading code as a result, but no thread support... yet!

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-23 15:48:32 +09:30
Kevin Shanahan dddae057d6 TyrUtils v0.8
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-23 09:40:05 +09:30
Kevin Shanahan 5943c71c98 common: pass file handle and header into AddLump
Instead of passing parameters via globals.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-20 10:53:34 +09:30
Kevin Shanahan 4220341252 build: create build version file and dependencies
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 16:10:26 +09:30
Kevin Shanahan 02e1f44f51 build: clean the dist directory too
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 16:02:46 +09:30
Kevin Shanahan daa2d4c868 post-release version update
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 16:02:25 +09:30
Kevin Shanahan 2539b73868 TyrUtils v0.7
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 14:39:52 +09:30
Kevin Shanahan a8348418e6 Merge branch 'master' of ssh://tuon/~/scm/tyrutils 2013-04-10 14:33:07 +09:30
Kevin Shanahan af9caf4048 build: set up snapshot targets for Win32 and OSX
Pull in some of the techniques from my TyrQuake Makefile and build OSX
fat binaries in one invocation of 'make'.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 14:21:59 +09:30
Kevin Shanahan 4021c06852 build: fix ghetto unix2dos conversion to work on msys
The only thing that seems to be able to convert \n to \r\n is awk, so use
that everywhere.

I don't understand why, but echoing the verbose command on OSX echos a
literal \r and messes up the output. Adding an extra \ escape fixes it
there, but then Linux/Msys echo the extra \... I think the OSX behaviour
might be broken here, oh well...

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-04 14:30:09 +10:30
Kevin Shanahan 9b5868ad6d build: tag builds with uncommitted changes as dirty
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-28 10:00:57 +10:30
Kevin Shanahan f0af8eac91 build: fix for text documentation generation
Fix the date/version tags in the man pages also.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-20 10:42:55 +10:30
Kevin Shanahan f369c97f68 build: fix directory names properly in fatbin rules
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 15:52:48 +10:30
Kevin Shanahan 2c4f898bbf build: insert the date/version into the man pages
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 15:38:04 +10:30
Kevin Shanahan 08408888bc build: small tidy up to documentation generation
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 14:11:41 +10:30
Kevin Shanahan 2da19f77f9 build: small tidy up to version number generation
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 14:08:23 +10:30
Kevin Shanahan f24a94eab5 build: improve man2txt and man2html rules
* Output to temp file and only move to final location upon success
* Fix echo of command in verbose mode (requires quotes)
* Don't use $(call ...) to invoke the groff command
* Use printf to generate the \r for the sed "unix2dos" replacement

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 13:59:45 +10:30
Kevin Shanahan b4ff9663cc build: add ability to compile for WIN64 using MinGW64
Fix a few minor int<->pointer size warnings.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-15 21:49:16 +10:30
Kevin Shanahan af80a06f74 docs: convert docs to unix man page format with generated html and text
Had to increase the width of the quiet_cmd_* defines to fit the new
MAN2HTML quiet command.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-15 20:16:23 +10:30
Kevin Shanahan 7401127b1c build: use BUILD_DIR instead of BIN_PFX for building OSX fat binaries
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-13 12:56:23 +10:30
Kevin Shanahan 15eaf4b8a8 build: hack together a quick way to build a win32 snapshot
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-13 12:55:35 +10:30
Kevin Shanahan b6b7aca665 TyrUtils v0.6
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-07 18:33:19 +10:30
Kevin Shanahan 7b36c6fd2f build: query git for version info and print consistently for each util
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-07 14:26:14 +10:30
Kevin Shanahan 65b38c4952 build: add simple target for building OS X fat binaries
The "fatbin2" target isn't working yet since I don't have the right cross
compiler set up, but once I do then adding CC=foo to the $(MAKE) command
should be all that is needed.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-01 09:20:34 +10:30
Kevin Shanahan e0eabb1095 build: use the correct build dir variable for qbsp objects
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-01 09:19:42 +10:30
Kevin Shanahan 49e5d76273 build: add LDFLAGS from environment when linking
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-01 09:19:16 +10:30
Kevin Shanahan 9580847712 build: fix pthread build warning on darwin
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-12 08:58:56 +10:30
Kevin Shanahan 87e9c04205 build: detect darwin as a supported platform
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-12 08:58:27 +10:30
Kevin Shanahan 5df0b0c27a build: add -Wwrite-strings to build arguments()
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-11 20:11:16 +10:30
Kevin Shanahan dacba3ca2e build: make build skip the strip step if STRIP is empty
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-11 18:47:47 +10:30
Kevin Shanahan 4161d10a68 vis: add saving and resuming of vis state to/from disk
Inspired by the implementation of Benjt Jardrup, save the current state of
the vis job to disc at regular intervals so that we can resume from that
point in case the computer needs to be rebooted/shutdown or crash/power
issues occur.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-09 16:40:37 +10:30
Kevin Shanahan 0e343c4cf8 build: fix linking utils with pthreads
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-08 16:47:17 +10:30
Kevin Shanahan a56030fad0 common: make logprint properly interrupt the thread progress display
Logprint will notify the threads code that the progress meter has been
interrupted and the progress meter will re-print the next time it needs to
be updated.

Unfortunately this makes all the utils depend on the thread code, but not
a big issue.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-08 16:37:48 +10:30
Kevin Shanahan c42f0e26b4 vis: use the common threads code
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-26 10:38:50 +10:30
Kevin Shanahan 7ee8bc183b light: use the common threads code
Make light use the common threads code.
The common progress indicator code is still not used.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-26 09:35:26 +10:30
Kevin Shanahan 0908b25f47 build: don't need (or want) -W arg to pwd on Windows
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 21:59:29 +10:30
Kevin Shanahan 6fab0a5358 light: make pthreads support work
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 20:14:39 +10:30
Tyrann a911219515 Remove need for "prepare" in the Makefile
Just conditionally do mkdir if it's needed. Potentially a few more
calls to 'stat' during make, but should be cheap enough...
2012-01-07 18:01:32 +10:30
Tyrann a16d9b07c9 Properly include generated dependency files in Makefile 2012-01-07 16:45:31 +10:30
Tyrann 7763d7d9fe Rewrite Makefile
Pretty much completely rewrite the Makefile using concepts from my
tyrquake Makefile. So we get quiet compiles, cross compiles and
properly generated dependencies.
2012-01-06 20:57:58 +10:30
Tyrann 8a7304a54d [PATCH] TyrUtils v0.4
Quick release to fix the ongoing saga that is my crappy .lit coloured lighting
support. I really did test it this time...

I bumped the qbsp version as well, just to track the utils "package" version.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-09-25 11:18:00 +09:30
Tyrann 8e774a9b30 [PATCH] TyrUtils v0.3
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-09-23 21:08:33 +09:30
Tyrann 1cfdcdb85a [PATCH] qbsp: Link against math lib
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-21 23:18:56 +09:30
Tyrann 6bd69a0519 [PATCH] qbsp: Remove malloc retry logic
If we run out of memory, then too bad. Qbsp never _really_ takes so long that
you'd really care too much about starting again. Simplifies portability.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-19 05:32:46 +09:30
Tyrann c221cc2f08 [PATCH] qbsp: Update IntroString / version number
I better replace the IntroString with my own, so it's obvious people are
running a modified version.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-10-09 13:47:08 +09:30
Tyrann 4464491807 [PATCH] qbsp: Use double-precision floating point
Set the vec_t type to "double" using the DOUBLEVEC_T preproccessor define. Fix
up hard-coded usages of float in various places throughout the code. Note that
texinfo_t is an on-disk structure, so that needs to stay as float and we work
around incompatibilities with the vector functions using a temporary vec3_t.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-16 16:36:16 +09:30
Tyrann 50e6c880cc [PATCH 9/9] qbsp: Compile as C code
Now that all the C++isms have been removed, rename the .cpp source files to .c
and remove the special case makefile rules for compiling qbsp object files.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 17:38:34 +09:30
Tyrann 1c082ace11 [PATCH 8/9] qbsp: Remove stricmp/strcasecmp workaround
Patch the source files and remove the preprocessor workaround for
stricmp/strcasecmp substitution.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 17:38:34 +09:30
Tyrann 25f6148fc3 [PATCH] Make qbsp build
Make some bare-minimum changes to get qbsp to build with gcc/g++ and
MinGW/Msys.
o Added makefile rules
o Work around windows specific calls to e.g. _getcwd
o Use noecho() / echo() calls around getch() in Linux
o Substitute stricmp -> strcasecmp (in Makefile for now)
o Fix non-portable (incorrect?) of inline
o Fix misuse of delete where delete [] is required...

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 17:35:05 +09:30