Skip to content

Commit ffae5f6

Browse files
committed
A fix for datadir being updated in schemas/flml.in
configure is now not involved, instead make uses sed to substitute in the correct prefix, which means that the prefix can be set at install time as well as configure time.
1 parent 77e0ccf commit ffae5f6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Makefile.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ distclean: clean
491491
include/spatialindex include/spud include/spud.h \
492492
include/spud_enums.h include/tinystr.h include/tinyxml.h \
493493
include/version.h include/vtk.h \
494-
preprocessor/check_options.F90 schemas/flml \
494+
preprocessor/check_options.F90 \
495495
preprocessor/register_diagnostics.F90 python/setup.py > \
496496
/dev/null
497497
@for i in `find ./*/ -name Makefile.in`; do rm -f `echo $$i | sed 's/.in$$//'`; done > /dev/null
@@ -615,7 +615,7 @@ install: default fltools bin/shallow_water bin/burgers_equation
615615
mkdir -p $(DESTDIR)$(datadir)/fluidity
616616
cp -r schemas/ $(DESTDIR)$(datadir)/fluidity/
617617
mkdir -p $(DESTDIR)$(datadir)/diamond/schemata
618-
cp schemas/flml $(DESTDIR)$(datadir)/diamond/schemata
618+
sed 's/$${datadir}/$(subst /,\/,$(datadir))/g' schemas/flml.in > $(DESTDIR)$(datadir)/diamond/schemata/flml
619619
cd python ; python setup.py install --root=$(shell echo ${DESTDIR} | sed 's/^$$/\//') --prefix="$(prefix)" $$FLUIDITY_PYTHON_INSTALL_ARGS
620620
cp -r examples/ $(DESTDIR)$(docdir)/fluidity
621621
find $(DESTDIR)$(docdir)/fluidity/examples -type f -exec sed -i "s/\.\.\/\.\.\/\.\.\/bin\///" '{}' \;

configure

+1-2
Original file line numberDiff line numberDiff line change
@@ -15802,7 +15802,7 @@ fi
1580215802
1580315803
#*******************
1580415804
15805-
ac_config_files="$ac_config_files Makefile debug/Makefile bathymetry/Makefile ocean_forcing/Makefile ocean_forcing/tests/Makefile sediments/Makefile hyperlight/Makefile femtools/Makefile femtools/tests/Makefile forward_interfaces/Makefile horizontal_adaptivity/Makefile horizontal_adaptivity/tests/Makefile preprocessor/Makefile error_measures/Makefile error_measures/tests/Makefile parameterisation/Makefile parameterisation/tests/Makefile fldecomp/Makefile assemble/Makefile assemble/tests/Makefile diagnostics/Makefile main/Makefile tools/Makefile tools/version-info python/setup.py adjoint/Makefile adjoint/tests/Makefile climatology/Makefile libmba2d/Makefile libmba3d/Makefile libjudy/Makefile libjudy/src/Makefile libjudy/src/JudyCommon/Makefile libjudy/src/Judy1/Makefile libjudy/src/JudyL/Makefile libjudy/src/JudySL/Makefile libjudy/src/JudyHS/Makefile libwm/Makefile libvtkfortran/Makefile schemas/flml reduced_modelling/Makefile"
15805+
ac_config_files="$ac_config_files Makefile debug/Makefile bathymetry/Makefile ocean_forcing/Makefile ocean_forcing/tests/Makefile sediments/Makefile hyperlight/Makefile femtools/Makefile femtools/tests/Makefile forward_interfaces/Makefile horizontal_adaptivity/Makefile horizontal_adaptivity/tests/Makefile preprocessor/Makefile error_measures/Makefile error_measures/tests/Makefile parameterisation/Makefile parameterisation/tests/Makefile fldecomp/Makefile assemble/Makefile assemble/tests/Makefile diagnostics/Makefile main/Makefile tools/Makefile tools/version-info python/setup.py adjoint/Makefile adjoint/tests/Makefile climatology/Makefile libmba2d/Makefile libmba3d/Makefile libjudy/Makefile libjudy/src/Makefile libjudy/src/JudyCommon/Makefile libjudy/src/Judy1/Makefile libjudy/src/JudyL/Makefile libjudy/src/JudySL/Makefile libjudy/src/JudyHS/Makefile libwm/Makefile libvtkfortran/Makefile reduced_modelling/Makefile"
1580615806
1580715807
cat >confcache <<\_ACEOF
1580815808
# This file is a shell script that caches the results of configure
@@ -16534,7 +16534,6 @@ do
1653416534
"libjudy/src/JudyHS/Makefile") CONFIG_FILES="$CONFIG_FILES libjudy/src/JudyHS/Makefile" ;;
1653516535
"libwm/Makefile") CONFIG_FILES="$CONFIG_FILES libwm/Makefile" ;;
1653616536
"libvtkfortran/Makefile") CONFIG_FILES="$CONFIG_FILES libvtkfortran/Makefile" ;;
16537-
"schemas/flml") CONFIG_FILES="$CONFIG_FILES schemas/flml" ;;
1653816537
"reduced_modelling/Makefile") CONFIG_FILES="$CONFIG_FILES reduced_modelling/Makefile" ;;
1653916538
1654016539
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;

configure.in

-1
Original file line numberDiff line numberDiff line change
@@ -1691,5 +1691,4 @@ AC_OUTPUT(Makefile
16911691
libjudy/src/JudyHS/Makefile
16921692
libwm/Makefile
16931693
libvtkfortran/Makefile
1694-
schemas/flml
16951694
reduced_modelling/Makefile)

schemas/flml.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Fluidity Markup Language
2-
@datadir@/fluidity/schemas/fluidity_options.rng
2+
${datadir}/fluidity/schemas/fluidity_options.rng

0 commit comments

Comments
 (0)