summaryrefslogtreecommitdiff
path: root/graphics/inventor/files/patch-revo.c++
blob: e69d6aff3ba1634593ec49ff0ef39a34b126402b (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
*** apps/demos/revo/revo.c++.orig	Fri Jan  3 10:09:04 2003
--- apps/demos/revo/revo.c++	Fri Jan  3 10:11:20 2003
***************
*** 66,71 ****
--- 66,77 ----
  #include "LineManip.h"
  #include "RevClass.h"
  
+ #ifdef __FreeBSD__
+ #define PDF_READER "xpdf"
+ #else
+ #define PDF_READER "acroread"
+ #endif
+ 
  //
  // These are defined in profile.c++
  //
***************
*** 86,102 ****
      }
  
      char command[100];
!     sprintf(command, "which acroread >& /dev/null");
  
      int err = system(command);
      if (err)
      {
! 	system("xmessage 'You must install acroread"
  	       " for this function to work' > /dev/null");
  	return;
      }
  
!     sprintf(command, "acroread " IVPREFIX "/demos/Inventor/revo.about &");
      system(command);
  }	
  
--- 92,108 ----
      }
  
      char command[100];
!     sprintf(command, "which " PDF_READER " >& /dev/null");
  
      int err = system(command);
      if (err)
      {
! 	system("xmessage 'You must install " PDF_READER
  	       " for this function to work' > /dev/null");
  	return;
      }
  
!     sprintf(command, PDF_READER " " IVPREFIX "/demos/Inventor/revo.about &");
      system(command);
  }