Преглед изворни кода

Make start-stop-daemon print the proper version instead of 'VERSION'.

Guillem Jover пре 20 година
родитељ
комит
eaf38d679d
3 измењених фајлова са 10 додато и 2 уклоњено
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 3 2
      utils/start-stop-daemon.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2006-01-29  Guillem Jover  <guillem@debian.org>
+
+	* utils/start-stop-daemon.c (do_help): Print the proper version giving
+	it as an argument to printf, instead of printing 'VERSION'.
+
 2006-01-29  Guillem Jover  <guillem@debian.org>
 
 	* configure.ac: Bump version to 1.13.14~.

+ 2 - 0
debian/changelog

@@ -1,5 +1,7 @@
 dpkg (1.13.14~) UNRELEASED; urgency=low
 
+  [ Guillem Jover ]
+  * Make start-stop-daemon print the proper version instead of 'VERSION'.
 
  -- Guillem Jover <guillem@debian.org>  Sun, 29 Jan 2006 06:02:58 +0200
 

+ 3 - 2
utils/start-stop-daemon.c

@@ -284,7 +284,7 @@ static void
 do_help(void)
 {
 	printf(
-"start-stop-daemon VERSION for Debian - small and fast C version written by\n"
+"start-stop-daemon %s for Debian - small and fast C version written by\n"
 "Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>, public domain.\n"
 "\n"
 "Usage:\n"
@@ -319,7 +319,8 @@ do_help(void)
 "or <schedule> may be just <timeout>, meaning <signal>/<timeout>/KILL/<timeout>\n"
 "\n"
 "Exit status:  0 = done      1 = nothing done (=> 0 if --oknodo)\n"
-"              3 = trouble   2 = with --retry, processes wouldn't die\n");
+"              3 = trouble   2 = with --retry, processes wouldn't die\n",
+	       VERSION);
 }