Commit Graph
100 Commits
Author SHA1 Message Date
Anthony J. Bentley 8c2fb79c39 Add a web manpages target (for my personal use). 2012-10-18 21:15:20 -06:00
Anthony J. Bentley 7b4746b20e Add a MinGW target for me to easily create Windows executables.
This is not for Windows users!
2012-10-18 20:46:17 -06:00
Anthony J. Bentley cf3bfb1372 Use curly braces consistently in Makefile. 2012-10-18 20:25:33 -06:00
Anthony J. Bentley f821a1e0a1 Allow a noisy build (user‐configurable). 2012-10-18 20:24:27 -06:00
Anthony J. Bentley 39d8674a93 Improve the Makefile: allow user‐defined variables. 2012-10-18 20:22:47 -06:00
Anthony J. Bentley a2dc23c55c Remove unneeded build flag. 2012-10-18 19:50:50 -06:00
Anthony J. Bentley fd724d10e4 Add support for the four‐character game ID. 2011-12-29 20:22:06 -07:00
Anthony J. Bentley 07802fffc9 Remove the (old, obsolete) RGBFix HTML page. Use the manpage instead. 2011-12-26 23:28:06 -07:00
Anthony J. Bentley 309e2c0b93 Update the SGB flag in the rgbfix examples. 2011-12-07 21:19:56 -07:00
Anthony J. Bentley b51c1cc71c Add Windows build instructions. 2011-12-02 11:05:05 -07:00
Anthony J. Bentley 5d6559f15f Remove nonstandard <err.h>.
This provides some really nice functions, but does not exist in some
environments (particularly MinGW).
2011-12-02 01:23:23 -07:00
Anthony J. Bentley b1a2c664a9 Revert use of system exit codes.
While well‐intentioned, in practice this hurts portability and
really, nobody checks the return codes anyway.
2011-06-04 21:33:03 -06:00
Anthony J. Bentley d784b14615 Remove unneeded include. 2011-04-11 20:00:52 -06:00
Anthony J. Bentley 60451fd41f Remove unused and outdated .gitignore. 2011-04-11 19:57:38 -06:00
Anthony J. Bentley 214d13c8d3 New sentence, new line. 2011-04-10 00:39:18 -06:00
Anthony J. Bentley ba30863b73 In manuals, use wrapping macros instead of literal parens, etc. 2011-04-10 00:37:58 -06:00
Anthony J. Bentley abf8f8255a Fix some manual macro scoping problems. 2011-04-10 00:32:31 -06:00
Anthony J. Bentley 23624e1c1d Fix case in manpage section name 2011-04-10 00:15:59 -06:00
Anthony J. Bentley 009ac34f32 Remove unnecessary comments from manpage sources 2011-04-10 00:15:35 -06:00
Anthony J. Bentley 9a9d071024 Oops: remove escape that was keeping manpage date from being parsed 2011-04-10 00:12:19 -06:00
Anthony J. Bentley 9f9e76e85f Use the semantic .Ad in manpages. 2011-04-10 00:08:44 -06:00
Anthony J. Bentley 085ee6d4c0 Fix typo in rgbds(7). 2010-12-22 15:59:19 -07:00
Anthony J. Bentley 0f606e5d83 Add a rgbds(7) manpage. 2010-12-22 15:35:32 -07:00
Anthony J. Bentley 376c8d2f5b Update man page: .gb will no longer be added to a filename without it 2010-12-22 15:15:43 -07:00
Anthony J. Bentley 6f46058e21 Add an install target. 2010-12-22 14:38:45 -07:00
Anthony J. Bentley b9f92536a9 Remove “localversion” script. 2010-12-22 14:26:43 -07:00
Anthony J. Bentley 7384c41c82 Minor whitespace improvements 2010-12-22 14:24:46 -07:00
Anthony J. Bentley 114871d46d Move manuals to the main source directories. 2010-12-22 14:23:35 -07:00
Anthony J. Bentley 5ae2dc4844 Replace UTF8-encoded ø with mdoc escapes.
It absolutely kills me to have to do this in 2010. Unix should be using
UTF-8 everywhere.
2010-12-22 13:52:55 -07:00
Anthony J. Bentley d2f52fdd0c Rewrite rgbfix from scratch, under a free ISC license.
Slight changes in usage; the man page has been updated accordingly.
2010-12-22 13:48:44 -07:00
Anthony J. Bentley 05be8e0011 Delete rgbfix, to be replaced with a freely-licensed version 2010-12-22 13:19:37 -07:00
Anthony J. Bentley b1739d95a5 Silence build process 2010-12-22 13:15:55 -07:00
bentley 0da1489da1 replace readme with installation instructions 2010-04-03 19:43:03 -06:00
bentley 2fa9a3c768 new sentence, new line
see http://marc.info/?l=openbsd-tech&m=126956447409663&w=2
2010-03-25 21:58:23 -06:00
bentley ccbfa16d7f fix small mdoc error 2010-03-18 21:05:50 -06:00
bentley b53c945f05 Man pages! 2010-02-27 19:19:50 -07:00
bentley 7293da9084 fix some error messages: err() instead of errx(strerror()) 2010-02-17 18:28:03 -07:00
bentley 3a95de144e this is why you should always test build *before* making a commit 2010-02-04 23:18:57 -07:00
bentley 1c8b31ca1d fix compile error
stupid bug, printed % instead of %s
2010-02-04 23:16:38 -07:00
bentley 2a3cd65ee8 rgbasm: improve "undefined macro" error message 2010-01-18 20:41:34 -07:00
bentley 5f23215c5d rgbasm: improve error message for failed INCBIN 2010-01-18 17:42:54 -07:00
bentley 02ba30f8e0 rgblink: improve file open error messages 2010-01-18 16:47:08 -07:00
bentley aea1990de3 rgbfix: minor correction to last error message commit 2010-01-18 16:29:48 -07:00
bentley 5302f36d38 rgblib: improve file open error message 2010-01-18 16:27:42 -07:00
bentley f97e856a1f rgbfix: improve file open error message 2010-01-18 16:17:13 -07:00
bentley b1469902d6 filesize() function was unused! guess I'll remove it 2010-01-18 15:45:38 -07:00
bentley 761656c54b fopen does not take a "t" mode
"t" is a nonportable way of opening files in text mode. Windows
opens files in text mode by default anyway, and in UNIX there is
no text mode. (Passing "t" to fopen is undefined in standard C.)
2010-01-18 15:40:19 -07:00
bentley 0d16e5c573 rgbasm: fix usage (-p, not -z) 2010-01-18 14:41:24 -07:00
bentley c6fb526a88 if module name is too long, error out rather than silently truncate 2010-01-17 16:26:46 -07:00
bentley a3eb287044 rgblib: fix usage information, make it match the rest of rgbds 2010-01-17 15:35:02 -07:00
bentley f4a56de4df remove unused variable 2010-01-17 15:32:35 -07:00
bentley def4f61d5a rgbfix: juvenile mistake. Make last commit work the way it should 2010-01-17 15:31:13 -07:00
bentley 7d6fac9c00 rgblib: use full commands instead of letters ("add" instead of "a") 2010-01-17 15:28:28 -07:00
bentley bd568d9afc rgblink: make usage() print better in a terminal window 2010-01-17 15:11:52 -07:00
bentley 02e6220742 standardize on -p for setting pad value 2010-01-15 20:04:37 -07:00
bentley 860c9883bb rgbasm: fix usage information 2010-01-15 19:50:58 -07:00
bentley e25d69e976 rgblib: return EX_USAGE for usage-related errors 2010-01-15 19:44:46 -07:00
bentley 8406fd84d6 rgbasm: return EX_USAGE for option errors 2010-01-15 19:42:17 -07:00
bentley 5694d6907c rgbasm: use getopt(3) instead of hand-rolled flag parsing 2010-01-15 19:40:35 -07:00
bentley c3e212d399 stop a strcpy() warning on OpenBSD 2010-01-15 19:15:24 -07:00
bentley 80e957b5d5 make makefile respect CFLAGS 2010-01-15 18:55:34 -07:00
bentley 7474cee70d rgbasm: use errx() for some error messages
Need to replace fstk_Dump to fix the rest of the error messages
2010-01-15 18:51:14 -07:00
bentley bd84313462 remove GAMEBOY/PCENGINE conditionals (this is a Game Boy assembler) 2010-01-15 17:18:58 -07:00
bentley 795542103d fix "static declaration follows non-static" warning 2010-01-15 17:16:06 -07:00
bentley 35af90723b fix implied declaration warning 2010-01-15 17:11:06 -07:00
bentley e5ba184ef3 fix strcpy() warning on OpenBSD 2010-01-15 17:07:33 -07:00
bentley 4feaa929ff fix usage fill character info 2010-01-15 17:05:06 -07:00
bentley 48fd34c923 rgbasm: remove option for random fill character 2010-01-15 17:04:34 -07:00
bentley b63924ebf4 remove endianness code (this is solely a Game Boy assembler now) 2010-01-15 16:46:26 -07:00
bentley 24c1613f06 remove mswin-type define -- this is UNIX 2010-01-15 16:35:10 -07:00
bentley 913e9c9e4f rgblib: use errx() for error messages 2010-01-15 16:29:20 -07:00
bentley 2648ee9811 rgblink: remove vestigial linkfile function 2010-01-15 14:33:49 -07:00
bentley 06c4e1fb4b rgblink: set default fill byte to 0x00 2010-01-15 13:11:14 -07:00
bentley deccbb07e9 rgblink: remove random option for fill character 2010-01-15 13:05:16 -07:00
bentley dc390e8c1f and rename xlib to rgblib 2010-01-15 12:44:46 -07:00
bentley bfbc9fd101 while we're removing backwards compatibility, rename xlink->rgblink 2010-01-15 12:42:16 -07:00
bentley 084cc995e7 make >32KiB default; replace "-t s" with "-t" (tiny?) 2010-01-15 12:38:19 -07:00
bentley 367abd8396 remove psion2 compatibility; i doubt anyone uses it 2010-01-15 12:35:11 -07:00
bentley 97b9e822aa xlink: fix usage 2010-01-15 12:15:19 -07:00
bentley 1202c6b459 minor: fix implicit declaration warning 2010-01-15 11:04:00 -07:00
bentley 755572c111 replace linkfile functionality with command-line options
Instead of running:
$ xlink linkfile.txt
where the linkfile looks like:
---
[Objects]
foo.o
bar.o

[Libraries]
foo.l
bar.l

[Output]
baz.gb
---
we now do:
$ xlink -o baz.gb -l foo.l -l bar.l foo.o bar.o
2010-01-15 10:52:38 -07:00
bentley b223905e67 xlink: use some proper return values 2010-01-15 00:33:46 -07:00
bentley 157fda2bc8 xlink: fix usage printing to match new options (and rgbfix format) 2010-01-15 00:29:10 -07:00
bentley c5ce3ae178 xlink: use getopt(3) instead of hand-rolled flag parsing 2010-01-15 00:23:59 -07:00
bentley 0017a93a13 minor: finish removing unused var temptext 2010-01-14 23:47:10 -07:00
bentley 0b08fca9f2 xlink: replace awkward fatalerror() with standard errx(3)
fatalerror() prints a given string to stdout and exits(5). It
cannot format text, so there was a string temptext used with
sprintf() to format text and pass it to fatalerror().

errx() can format text, and it prints to stderr.

As a bonus, this fixes the linking warnings from use of sprintf().
2010-01-14 23:17:22 -07:00
bentley bb85782faa this is a bourne script, bash is not needed
Don't use /bin/bash ! Many systems do not have bash there (they
might have it at /usr/local/bin/bash, for example). Don't specify
bash unless you specifically need bash features -- many systems
do not have bash installed by default.
2010-01-14 22:16:59 -07:00
bentley b69cd0c345 -v doesn't need to modify ROM size; -p can do that 2010-01-13 11:22:56 -07:00
bentley 2da63e2f7d cosmetic change: rearrange getopt() switch for easier reading
cases are put in alphabetical order, to match the getopt string.
2010-01-13 10:08:23 -07:00
bentley 0b647c5a25 move color only flag to -c, color compatible flag to -C 2010-01-13 10:04:42 -07:00
bentley 2d5c193e6d move MBC option from -b to -m 2010-01-13 09:50:02 -07:00
bentley cd52e3c56c move ramsize option from -m to -r 2010-01-13 09:48:13 -07:00
bentley 5931973029 fix compile error on Linux 2010-01-13 08:26:48 -07:00
bentley a913dc01b5 remove unused variable argn (no longer needed due to getopt(3) usage) 2010-01-13 07:33:02 -07:00
bentley 9da8db3ce1 fix cast warnings 2010-01-13 07:31:34 -07:00
bentley cdb90cea29 remove archaic 512KiB error, replace with 8MiB warning 2010-01-12 22:46:53 -07:00
bentley d0a03bc99b pad option now changes the ROM size at 0x148 2010-01-12 22:40:37 -07:00
bentley cba8933c11 remove unneeded carttype checking in -v
To simplify the code, remove the carttype work in the -v option.
Because the MBC option already alters it, this one is superfluous.
2010-01-12 21:21:48 -07:00
bentley b2a4f54f59 rename PrintUsage() to usage(), and return EX_USAGE 2010-01-12 19:52:42 -07:00
bentley 5fe2bcbeed use errx(3) and warnx(3) instead of rolling our own error functions 2010-01-12 19:44:21 -07:00