File: relax-directory-check.patch

package info (click to toggle)
povray 1%3A3.7.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 146,780 kB
  • sloc: cpp: 845,005; ansic: 122,118; sh: 34,206; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,387; cs: 879; awk: 590; perl: 245; xml: 95
file content (15 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Beckmann <anbe@debian.org>
Description: relax prebuild.sh directory check
 the shell may set $0 to an absolute path if called as ./prebuild.sh

--- a/unix/prebuild.sh
+++ b/unix/prebuild.sh
@@ -61,7 +61,7 @@ required_automake="1.9"
 ###############################################################################
 
 # Prevents running from another directory.
-if test x"`dirname $0`" != x"."; then
+if test x"`dirname $0`" != x"." && ! cmp -s "$0" ../unix/prebuild.sh; then
   echo "$0: must ran from POV-Ray's unix/ directory"
   exit 1
 fi