1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

Attach utils versions to WM version

This commit is contained in:
Tamas TEVESZ
2010-04-01 19:05:25 +02:00
committed by Carlos R. Mafra
parent 7dc767ae78
commit e7a46d5cdf
10 changed files with 12 additions and 30 deletions

View File

@@ -20,8 +20,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "convertfonts (Window Maker) 1.0"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -91,7 +89,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -20,8 +20,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "geticonset (Window Maker) 0.1"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -65,7 +63,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -20,8 +20,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "getstyle (Window Maker) 0.6"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -366,7 +364,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "ptvh", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "ptvh", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -20,8 +20,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "seticons (Window Maker) 0.1"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -65,7 +63,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -20,8 +20,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "setstyle (Window Maker) 0.6"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -389,7 +387,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -21,8 +21,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "wdread (Window Maker) 0.2"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -71,7 +69,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -20,8 +20,6 @@
* USA. * USA.
*/ */
#define PROG_VERSION "wdwrite (Window Maker) 0.2"
#ifdef __GLIBC__ #ifdef __GLIBC__
#define _GNU_SOURCE /* getopt_long */ #define _GNU_SOURCE /* getopt_long */
#endif #endif
@@ -71,7 +69,7 @@ int main(int argc, char **argv)
while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1) while ((ch = getopt_long(argc, argv, "hv", longopts, NULL)) != -1)
switch(ch) { switch(ch) {
case 'v': case 'v':
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
return 0; return 0;
/* NOTREACHED */ /* NOTREACHED */
case 'h': case 'h':

View File

@@ -61,8 +61,6 @@ typedef struct {
int count; /* screen count, 0 = inactive */ int count; /* screen count, 0 = inactive */
} WXineramaInfo; } WXineramaInfo;
#define PROG_VERSION "wmsetbg (Window Maker) 2.8"
#define WORKSPACE_COUNT (MAX_WORKSPACES+1) #define WORKSPACE_COUNT (MAX_WORKSPACES+1)
Display *dpy; Display *dpy;
@@ -1287,7 +1285,7 @@ int main(int argc, char **argv)
exit(1); exit(1);
} }
} else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) { } else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) {
printf(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
exit(0); exit(0);
} else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) { } else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) {
print_help(); print_help();

View File

@@ -17,8 +17,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#define PROG_VERSION "wxcopy 0.3"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@@ -27,6 +25,8 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "../src/wconfig.h"
#define LINESIZE (4*1024) #define LINESIZE (4*1024)
#define MAXDATA (64*1024) #define MAXDATA (64*1024)
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
print_help(); print_help();
exit(0); exit(0);
} else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) { } else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) {
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
exit(0); exit(0);
} else if (strcmp(argv[i], "-cutbuffer") == 0 || strcmp(argv[i], "--cutbuffer") == 0) { } else if (strcmp(argv[i], "-cutbuffer") == 0 || strcmp(argv[i], "--cutbuffer") == 0) {
if (i < argc - 1) { if (i < argc - 1) {

View File

@@ -17,8 +17,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#define PROG_VERSION "wxpaste (Window Maker) 0.3"
#include "../src/config.h" #include "../src/config.h"
#include <stdio.h> #include <stdio.h>
@@ -164,7 +162,7 @@ int main(int argc, char **argv)
print_help(); print_help();
exit(0); exit(0);
} else if (argv[i][1] == 'v' || strcmp(argv[i], "--version") == 0) { } else if (argv[i][1] == 'v' || strcmp(argv[i], "--version") == 0) {
puts(PROG_VERSION); printf("%s (Window Maker %s)\n", __progname, VERSION);
exit(0); exit(0);
} else if (strcmp(argv[i], "-selection") == 0 || strcmp(argv[i], "--selection") == 0) { } else if (strcmp(argv[i], "-selection") == 0 || strcmp(argv[i], "--selection") == 0) {
if (i < argc - 1) { if (i < argc - 1) {