Skip to content
Snippets Groups Projects
Commit 8d2832cd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Eliminate use of CVS Revision keyword

parent 8159ff0a
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6436 failed
......@@ -22,6 +22,7 @@
#include <stdio.h>
#include <ctype.h> /* toupper */
#include <string.h> /* strcmp */
#include "sbbsdefs.h" // VERSION
#ifdef _WIN32
#include <windows.h> /* SetConsoleMode */
......@@ -31,15 +32,12 @@
#endif
#define CTRL_A '\1'
#undef ANSI
#define ANSI fprintf(out,"\x1b[")
static void print_usage(const char* prog)
{
char revision[16];
sscanf("$Revision: 1.12 $", "%*s %s", revision);
fprintf(stderr,"\nSynchronet Ctrl-A-Code to ANSI-Terminal-Sequence Conversion Utility v%s\n",revision);
fprintf(stderr,"\nSynchronet Ctrl-A-Code to ANSI-Terminal-Sequence Conversion Utility v%s\n",VERSION);
fprintf(stderr,"\nusage: %s infile.asc [outfile.ans] [[option] [...]]\n",prog);
fprintf(stderr,"\noptions:\n\n");
fprintf(stderr,"-strip strip Ctrl-A codes without ANSI equivalent, e.g. pause, delay\n");
......
......@@ -3401,9 +3401,6 @@ int main(int argc, char **argv)
char path[MAX_PATH+1];
int i,j;
int show_banner=TRUE;
char revision[16];
sscanf("$Revision: 1.52 $", "%*s %s", revision);
p = getenv("BAJAINCLUDE");
if(p != NULL) {
......@@ -3439,14 +3436,14 @@ int main(int argc, char **argv)
show_banner=0;
break;
default:
printf(banner,PLATFORM_DESC,revision);
printf(banner,PLATFORM_DESC,VERSION);
puts(usage);
bail(1); }
else
SAFECOPY(src, argv[i]);
if(show_banner)
printf(banner,PLATFORM_DESC,revision);
printf(banner,PLATFORM_DESC,VERSION);
if(!src[0]) {
puts(usage);
......
......@@ -2333,15 +2333,12 @@ int main(int argc, char **argv)
FILE *src;
char newname[MAX_PATH+1];
char *p;
char revision[16];
FILE *cache;
char cache_line[1024];
char *crc,*good,*str;
sscanf("$Revision: 1.48 $", "%*s %s", revision);
printf("\nUNBAJA v%s-%s - Synchronet Baja Shell/Module De-compiler\n"
,revision, PLATFORM_DESC);
,VERSION, PLATFORM_DESC);
for(f=1; f<argc; f++) {
if(!strncmp(argv[f],"-b",2)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment