From: Orion P. <or...@co...> - 2009-02-12 22:36:36
|
I'm trying to start to address https://bugzilla.redhat.com/show_bug.cgi?id=484519 here are the issues: - Examples are installed into /usr/share/plplot<version>/examples. This is not writable. - Examples are shipped with the appropriate sub-packages, so not all may be present (in particular the "c" examples) Thoughts: - I'd like for EXAMPLES_DIR to get set to /usr/share/plplot<version>/examples on install. - I'd like to test for the existence of the sub-directories in the examples dir to determine which tests to run. Something like: # Find out what front-ends have been configured and installed if [ -z "$FRONT_END" ] ; then for front_end_stats in c:@ENABLE_c@ cxx:@ENABLE_cxx@ f77:@ENABLE_f77@ \ f95:@ENABLE_f95@ java:@ENABLE_java@ \ octave:@ENABLE_octave@ python:@ENABLE_python@ \ tcl:@ENABLE_tcl@ perl:@ENABLE_perl@ \ ada:@ENABLE_ada@ ocaml:@ENABLE_ocaml@ do $front_end=${front_end_status/:ON/} [ $front_end != $front_end_status ] && [ -d $EXAMPLES_DIR/$front_end ] && FRONT_END="$FRONT_END $front_end" done fi - Get rid of the chmod +x. This shouldn't be needed. Comments? -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane or...@co... Boulder, CO 80301 http://www.cora.nwra.com |