File: fix_ftbfs_with_sbuild.patch

package info (click to toggle)
allegro4.4 2%3A4.4.3.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,756 kB
  • sloc: ansic: 164,458; asm: 17,620; cpp: 3,848; javascript: 3,053; objc: 1,687; sh: 1,107; python: 676; pascal: 179; makefile: 54; perl: 29; lisp: 1
file content (16 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix FTBFS with sbuild
 When building with sbuild, all paths contain "/build/", so this
 assertion is always true and files get copied to wrong locations.
Author: Tobias Hansen <tobias.han@gmx.de>

--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -72,7 +72,7 @@
     string(REPLACE "._tx" "" basename ${basename})
 
     set(page ${CMAKE_CURRENT_SOURCE_DIR}/${page})
-    if(${page} MATCHES "/build/")
+    if(${page} MATCHES "/src/build/")
         set(txt_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.txt)
         set(html_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.html)
     else()