Get rid of the verbose printing of individual file CVS version ids.
This was intended to be used for identifying code in the field for incoming bug reports, but I've never really found it all that useful. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@171 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
ede0fe31f4
commit
3ea96d00e8
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -48,8 +48,6 @@ extern char progbuf[];
|
||||||
extern PROGRAMMER * pgm;
|
extern PROGRAMMER * pgm;
|
||||||
|
|
||||||
|
|
||||||
char * avr_version = "$Id$";
|
|
||||||
|
|
||||||
extern int do_cycles;
|
extern int do_cycles;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -54,8 +54,6 @@ char * infile = NULL;
|
||||||
|
|
||||||
#define DEBUG 0
|
#define DEBUG 0
|
||||||
|
|
||||||
char * config_version = "$Id$";
|
|
||||||
|
|
||||||
|
|
||||||
int init_config(void)
|
int init_config(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -57,8 +57,6 @@ struct ihexrec {
|
||||||
extern char * progname;
|
extern char * progname;
|
||||||
extern char progbuf[];
|
extern char progbuf[];
|
||||||
|
|
||||||
char * fileio_version = "$Id$";
|
|
||||||
|
|
||||||
int b2ihex(unsigned char * inbuf, int bufsize,
|
int b2ihex(unsigned char * inbuf, int bufsize,
|
||||||
int recsize, int startaddr,
|
int recsize, int startaddr,
|
||||||
char * outfile, FILE * outf);
|
char * outfile, FILE * outf);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
|
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
|
||||||
* 1998, 1999, 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -51,8 +51,6 @@
|
||||||
|
|
||||||
#include "lists.h"
|
#include "lists.h"
|
||||||
|
|
||||||
char * lists_version = "$Id$";
|
|
||||||
|
|
||||||
#define MAGIC 0xb05b05b0
|
#define MAGIC 0xb05b05b0
|
||||||
|
|
||||||
#define CHECK_MAGIC 0 /* set to 1 to enable memory overwrite detection */
|
#define CHECK_MAGIC 0 /* set to 1 to enable memory overwrite detection */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
|
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
|
||||||
* 1998, 1999, 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* 1998, 1999, 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
142
avrdude/main.c
142
avrdude/main.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -96,33 +96,7 @@
|
||||||
#define DEFAULT_PARALLEL "/dev/ppi0"
|
#define DEFAULT_PARALLEL "/dev/ppi0"
|
||||||
#define DEFAULT_SERIAL "/dev/cuaa0"
|
#define DEFAULT_SERIAL "/dev/cuaa0"
|
||||||
|
|
||||||
extern char * avr_version;
|
char * version = "3.1.0";
|
||||||
extern char * config_version;
|
|
||||||
extern char * fileio_version;
|
|
||||||
extern char * lists_version;
|
|
||||||
extern char * main_version;
|
|
||||||
extern char * pgm_version;
|
|
||||||
extern char * ppi_version;
|
|
||||||
extern char * stk500_version;
|
|
||||||
extern char * term_version;
|
|
||||||
|
|
||||||
#define N_MODULES 9
|
|
||||||
|
|
||||||
char ** modules[N_MODULES] = {
|
|
||||||
&avr_version,
|
|
||||||
&config_version,
|
|
||||||
&fileio_version,
|
|
||||||
&lists_version,
|
|
||||||
&main_version,
|
|
||||||
&pgm_version,
|
|
||||||
&ppi_version,
|
|
||||||
&stk500_version,
|
|
||||||
&term_version
|
|
||||||
};
|
|
||||||
|
|
||||||
char * version = "3.0.0";
|
|
||||||
|
|
||||||
char * main_version = "$Id$";
|
|
||||||
|
|
||||||
char * progname;
|
char * progname;
|
||||||
char progbuf[PATH_MAX]; /* temporary buffer of spaces the same
|
char progbuf[PATH_MAX]; /* temporary buffer of spaces the same
|
||||||
|
@ -187,105 +161,6 @@ int getexitspecs(char *s, int *set, int *clr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int parse_cvsid(char * cvsid, char * name, char * rev, char * datetime)
|
|
||||||
{
|
|
||||||
int i, j;
|
|
||||||
|
|
||||||
if (strncmp(cvsid,"$Id: ", 5) != 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
name[0] = 0;
|
|
||||||
rev[0] = 0;
|
|
||||||
datetime[0] = 0;
|
|
||||||
|
|
||||||
i = 0;
|
|
||||||
j = 5;
|
|
||||||
while (cvsid[j] && cvsid[j] != ',')
|
|
||||||
name[i++] = cvsid[j++];
|
|
||||||
name[i] = 0;
|
|
||||||
|
|
||||||
while (cvsid[j] && cvsid[j] != ' ')
|
|
||||||
j++;
|
|
||||||
|
|
||||||
if (cvsid[j])
|
|
||||||
j++;
|
|
||||||
|
|
||||||
i = 0;
|
|
||||||
while (cvsid[j] && cvsid[j] != ' ')
|
|
||||||
rev[i++] = cvsid[j++];
|
|
||||||
rev[i] = 0;
|
|
||||||
|
|
||||||
if (cvsid[j])
|
|
||||||
j++;
|
|
||||||
|
|
||||||
i = 0;
|
|
||||||
while (cvsid[j] && cvsid[j] != ' ')
|
|
||||||
datetime[i++] = cvsid[j++];
|
|
||||||
if (cvsid[j] == ' ') {
|
|
||||||
datetime[i++] = cvsid[j++];
|
|
||||||
while (cvsid[j] && cvsid[j] != ' ')
|
|
||||||
datetime[i++] = cvsid[j++];
|
|
||||||
}
|
|
||||||
datetime[i] = 0;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int print_module_versions(FILE * outf, char * timestamp)
|
|
||||||
{
|
|
||||||
char name[64], rev[16], datetime[64];
|
|
||||||
int y, m, d, h, min, s;
|
|
||||||
int i;
|
|
||||||
int rc;
|
|
||||||
int maxtime;
|
|
||||||
struct tm t;
|
|
||||||
time_t now;
|
|
||||||
|
|
||||||
maxtime = 0;
|
|
||||||
for (i=0; i<N_MODULES; i++) {
|
|
||||||
parse_cvsid(*modules[i], name, rev, datetime);
|
|
||||||
rc = sscanf(datetime, "%d/%d/%d %d:%d:%d", &y, &m, &d, &h, &min, &s);
|
|
||||||
if (rc != 6) {
|
|
||||||
fprintf(stderr, "%s: module version scan error, rc=%d\n", progname, rc);
|
|
||||||
}
|
|
||||||
else if (timestamp) {
|
|
||||||
now = time(NULL);
|
|
||||||
gmtime_r(&now, &t);
|
|
||||||
t.tm_sec = s;
|
|
||||||
t.tm_min = min;
|
|
||||||
t.tm_hour = h;
|
|
||||||
t.tm_mday = d;
|
|
||||||
t.tm_mon = m-1;
|
|
||||||
t.tm_year = y-1900;
|
|
||||||
now = timegm(&t);
|
|
||||||
if (now > maxtime) {
|
|
||||||
maxtime = now;
|
|
||||||
strcpy(timestamp, datetime);
|
|
||||||
strcat(timestamp, " GMT");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (outf)
|
|
||||||
fprintf(outf, " %-10s %-5s %s\n", name, rev, datetime);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (outf)
|
|
||||||
fprintf(outf, "\n");
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
gmtime_r(&maxtime, &t);
|
|
||||||
fprintf(stderr, "Latest revision date is %04d/%02d/%02d %02d:%02d:%02d\n",
|
|
||||||
t.tm_year+1900, t.tm_mon, t.tm_mday,
|
|
||||||
t.tm_hour, t.tm_min, t.tm_sec);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (outf)
|
|
||||||
fprintf(outf, "\n");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int read_config(char * file)
|
int read_config(char * file)
|
||||||
{
|
{
|
||||||
|
@ -409,7 +284,6 @@ int main(int argc, char * argv [])
|
||||||
int readorwrite; /* true if a chip read/write op was selected */
|
int readorwrite; /* true if a chip read/write op was selected */
|
||||||
int ppidata; /* cached value of the ppi data register */
|
int ppidata; /* cached value of the ppi data register */
|
||||||
int vsize=-1; /* number of bytes to verify */
|
int vsize=-1; /* number of bytes to verify */
|
||||||
char timestamp[64];
|
|
||||||
AVRMEM * sig; /* signature data */
|
AVRMEM * sig; /* signature data */
|
||||||
|
|
||||||
/* options / operating mode variables */
|
/* options / operating mode variables */
|
||||||
|
@ -496,8 +370,6 @@ int main(int argc, char * argv [])
|
||||||
progbuf[i] = ' ';
|
progbuf[i] = ' ';
|
||||||
progbuf[i] = 0;
|
progbuf[i] = 0;
|
||||||
|
|
||||||
print_module_versions(NULL, timestamp);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* check for no arguments
|
* check for no arguments
|
||||||
*/
|
*/
|
||||||
|
@ -663,13 +535,9 @@ int main(int argc, char * argv [])
|
||||||
* they are running
|
* they are running
|
||||||
*/
|
*/
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n%s: Copyright (c) 2000-2002 Brian Dean, bsd@bsdhome.com\n"
|
"\n%s: Version %s\n"
|
||||||
"%sVersion %s Revision Timestamp %s\n\n",
|
"%sCopyright (c) 2000-2003 Brian Dean, bsd@bsdhome.com\n\n",
|
||||||
progname, progbuf, version, timestamp);
|
progname, version, progbuf);
|
||||||
|
|
||||||
if (verbose > 1) {
|
|
||||||
print_module_versions(stderr, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = read_config(configfile);
|
rc = read_config(configfile);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -45,8 +45,6 @@ int pgm_default_5 (struct programmer_t *, unsigned char cmd[4],
|
||||||
unsigned char res[4]);
|
unsigned char res[4]);
|
||||||
void pgm_default_6 (struct programmer_t *, char *);
|
void pgm_default_6 (struct programmer_t *, char *);
|
||||||
|
|
||||||
char * pgm_version = "$Id$";
|
|
||||||
|
|
||||||
|
|
||||||
PROGRAMMER * pgm_new(void)
|
PROGRAMMER * pgm_new(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -85,11 +85,6 @@ static struct ppipins_t pins[] = {
|
||||||
#define NPINS (sizeof(pins)/sizeof(struct ppipins_t))
|
#define NPINS (sizeof(pins)/sizeof(struct ppipins_t))
|
||||||
|
|
||||||
|
|
||||||
char * ppi_version = "$Id$";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int ppi_getops (int reg, unsigned long * get, unsigned long * set);
|
int ppi_getops (int reg, unsigned long * get, unsigned long * set);
|
||||||
|
|
||||||
int ppi_set (int fd, int reg, int bit);
|
int ppi_set (int fd, int reg, int bit);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -54,8 +54,6 @@
|
||||||
extern char * progname;
|
extern char * progname;
|
||||||
extern int do_cycles;
|
extern int do_cycles;
|
||||||
|
|
||||||
char * stk500_version = "$Id$";
|
|
||||||
|
|
||||||
|
|
||||||
int static stk500_send(PROGRAMMER * pgm, char * buf, int buflen)
|
int static stk500_send(PROGRAMMER * pgm, char * buf, int buflen)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -55,8 +55,6 @@ struct command {
|
||||||
char * desc;
|
char * desc;
|
||||||
};
|
};
|
||||||
|
|
||||||
char * term_version = "$Id$";
|
|
||||||
|
|
||||||
|
|
||||||
int cmd_dump (PROGRAMMER * pgm, struct avrpart * p, int argc, char *argv[]);
|
int cmd_dump (PROGRAMMER * pgm, struct avrpart * p, int argc, char *argv[]);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2001, 2002 Brian S. Dean <bsd@bsdhome.com>
|
* Copyright (c) 2000, 2001, 2002, 2003 Brian S. Dean <bsd@bsdhome.com>
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
Loading…
Reference in New Issue