packages: jpgraph2/jpgraph2.spec - fix paths in examples

glen glen at pld-linux.org
Fri Jun 5 16:29:26 CEST 2009


Author: glen                         Date: Fri Jun  5 14:29:26 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix paths in examples

---- Files affected:
packages/jpgraph2:
   jpgraph2.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: packages/jpgraph2/jpgraph2.spec
diff -u packages/jpgraph2/jpgraph2.spec:1.14 packages/jpgraph2/jpgraph2.spec:1.15
--- packages/jpgraph2/jpgraph2.spec:1.14	Tue Apr 21 16:13:04 2009
+++ packages/jpgraph2/jpgraph2.spec	Fri Jun  5 16:29:21 2009
@@ -51,6 +51,10 @@
 mv src/*.txt .
 mv src/Examples .
 
+%{__sed} -i -e 's,include ("../\(.*\)");,require_once "jpgraph2/\1";,' Examples/*.php
+%{__sed} -i -e 's,include_once ("../\(.*\)");,require_once "jpgraph2/\1";,' Examples/*.php
+%{__sed} -i -e 's,include "../\(.*\)";,require_once "jpgraph2/\1";,' Examples/*.php
+
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
@@ -75,6 +79,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2009/06/05 14:29:21  glen
+- fix paths in examples
+
 Revision 1.14  2009/04/21 14:13:04  areq
 - 2.3.4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jpgraph2/jpgraph2.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list