Selaa lähdekoodia

Bugfix in version declaration

Yann Weber 4 vuotta sitten
vanhempi
commit
5c3202dbf8
3 muutettua tiedostoa jossa 5 lisäystä ja 7 poistoa
  1. 1
    3
      configure.ac
  2. 3
    3
      include/config.h.in
  3. 1
    1
      src/conf.c

+ 1
- 3
configure.ac Näytä tiedosto

1
 #                                               -*- Autoconf -*-
1
 #                                               -*- Autoconf -*-
2
 # Process this file with autoconf to produce a configure script.
2
 # Process this file with autoconf to produce a configure script.
3
 
3
 
4
-VERSION=0.0.1
5
-
6
 AC_PREREQ([2.69])
4
 AC_PREREQ([2.69])
7
-AC_INIT([PyFCGI], VERSION, [yann.weber@member.fsf.org])
5
+AC_INIT([PyFCGI], [0.0.1], [yann.weber@member.fsf.org])
8
 AC_CONFIG_SRCDIR([src/main.c])
6
 AC_CONFIG_SRCDIR([src/main.c])
9
 AC_CONFIG_HEADERS([include/config.h])
7
 AC_CONFIG_HEADERS([include/config.h])
10
 
8
 

+ 3
- 3
include/config.h.in Näytä tiedosto

1
 /* include/config.h.in.  Generated from configure.ac by autoheader.  */
1
 /* include/config.h.in.  Generated from configure.ac by autoheader.  */
2
 
2
 
3
+/* Version number of package */
4
+#undef VERSION
5
+
3
 /* Define to 1 if you have the <syslog.h> header file. */
6
 /* Define to 1 if you have the <syslog.h> header file. */
4
 #undef HAVE_SYSLOG_H
7
 #undef HAVE_SYSLOG_H
5
 
8
 
55
 #endif
58
 #endif
56
 
59
 
57
 
60
 
58
-/* Version number of package */
59
-#undef VERSION
60
-
61
 /* Define to 1 if on MINIX. */
61
 /* Define to 1 if on MINIX. */
62
 #undef _MINIX
62
 #undef _MINIX
63
 
63
 

+ 1
- 1
src/conf.c Näytä tiedosto

32
 
32
 
33
 void print_version(int fd)
33
 void print_version(int fd)
34
 {
34
 {
35
-
35
+	dprintf(fd, "%s\n", PACKAGE_STRING);
36
 }
36
 }
37
 
37
 
38
 int parse_args(int argc, char *argv[])
38
 int parse_args(int argc, char *argv[])

Loading…
Peruuta
Tallenna