File: fix-manpage-generation-script.patch

package info (click to toggle)
allegro5 2%3A5.2.10.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,872 kB
  • sloc: ansic: 109,795; cpp: 12,976; objc: 4,592; java: 2,845; python: 2,595; javascript: 1,238; sh: 1,008; makefile: 40; xml: 27; pascal: 24
file content (27 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix issues with the manpage generation script.
 * Add alleg5 suffix to manual page file names to prevent
   possible name clashes. 
Author: Tobias Hansen <tobias.han@gmx.de>

--- a/docs/scripts/make_man.c
+++ b/docs/scripts/make_man.c
@@ -6,7 +6,7 @@
 
 #define MAX_NAMES 64
 
-static const char *SECTION = "3";
+static const char *SECTION = "3alleg5";
 static const char *MANUAL = "Allegro reference manual";
 static const char *SUFFIX = "Allegro 5 API";
 static dstr last_header;
--- a/docs/Refman.cmake
+++ b/docs/Refman.cmake
@@ -298,7 +298,7 @@
 
             set(outputs)
             foreach(entry ${entries})
-                list(APPEND outputs ${MAN_DIR}/${entry}.3)
+                list(APPEND outputs ${MAN_DIR}/${entry}.3alleg5)
             endforeach(entry)
 
             add_custom_command(