Commit graph

6 commits

Author SHA1 Message Date
GoldenTails
b7711b2b97 Pass argument list directly to functions that use them; quote arguments when used. 2022-04-04 20:02:30 -05:00
GoldenTails
a614865d35 Make comptime.sh conform to POSIX and less redundant, among other improvements
- Shebang now directly calls /bin/sh
- Improved indenting within the comprevision() function
- Quoted several strings to prevent possible argument splitting
- Replaced archaic backtick command statements with more descriptive `"$(...)"` statements
- Replaced direct references to `test` with more readable, but equivalent `[ ... ]` statements
- Replaced the ${str:0:8} bashism with an equivalent statement using POSIX cut
- Moved redundant definitions of the comptime.h body to a single function that takes arguments
2022-04-04 20:02:30 -05:00
Alam Ed Arias
d9298edec1 build: this script needs bash, not ash 2016-05-09 20:08:35 -04:00
Inuyasha
06dea3ab78 Branch and revision information in builds
Also makes comptime.bat work with git if able.
Development builds will now show the branch and the SHA1 hash of the revision. Also been tested to work with subversion, where it displays "Subversion r####". You know, just in case.
2016-01-14 07:46:27 -08:00
Alam Ed Arias
cb9494effa use git describe to get the tag+version 2014-04-09 12:27:29 -04:00
Alam Ed Arias
b93cb1b65a SRB2 2.1 release 2014-03-15 13:11:35 -04:00