Gabriel Dos Reis wrote: > Waldek Hebisch <[EMAIL PROTECTED]> writes: > > | I looked at hypertex pages and AFAICS I can use a simple sed script > | in a loop to fix paths in .pht files: > | > | sed 's,/doc/viewports/,/share/viewports/,g' > | > | After copying images from silver (to correct corruption which I described > | in anothe mail) and applying this script I was able to see graphic > | examples in build-imporvements. > | > | However, I am not sure if the new path that is '$AXIOM/share/viewports' > | is a good one. Namely, both viewports are machine independent. OTOH <snip> > This is an issue I was hoping to resolve very late in the process :-) >
What about the following patch, where I replaced copy by sed so that when installing .pht files. It allowed me to view graphic examples, while in the future we can easily change patterns (as I wrote, we should be able to generate pht files, so in long term Makefile will be different). diff -ru build-improvements.bb/src/hyper/Makefile.in build-improvements/src/hyper/Makefile.in --- build-improvements.bb/src/hyper/Makefile.in 2006-10-27 23:37:14.000000000 +0200 +++ build-improvements/src/hyper/Makefile.in 2006-10-28 04:40:19.000000000 +0200 @@ -162,7 +162,11 @@ @echo making ${HYPER}/pages from $(axiom_src_srcdir)/pages directory @ mkdir -p ${HYPER}/pages @ cp -pr $(srcdir)/pages/*.ht ${HYPER}/pages - @ cp -pr $(srcdir)/pages/*.pht ${HYPER}/pages + @ (cd $(srcdir)/pages/ ; \ + for A in *.pht; do \ + sed 's,/doc/viewports/,/share/viewports/,g' $$A \ + > ${HYPER}/pages/$$A; \ + done ) @ (cd ${HYPER}/pages ; \ rm -f ht.db ; \ rm -f *~ ; \ diff -ru build-improvements.bb/src/hyper/Makefile.pamphlet build-improvements/src/hyper/Makefile.pamphlet --- build-improvements.bb/src/hyper/Makefile.pamphlet 2006-10-27 23:37:14.000000000 +0200 +++ build-improvements/src/hyper/Makefile.pamphlet 2006-10-28 04:31:09.000000000 +0200 @@ -250,7 +250,11 @@ @echo making ${HYPER}/pages from $(axiom_src_srcdir)/pages directory @ mkdir -p ${HYPER}/pages @ cp -pr $(srcdir)/pages/*.ht ${HYPER}/pages - @ cp -pr $(srcdir)/pages/*.pht ${HYPER}/pages + @ (cd $(srcdir)/pages/ ; \ + for A in *.pht; do \ + sed 's,/doc/viewports/,/share/viewports/,g' $$A \ + > ${HYPER}/pages/$$A; \ + done ) @ (cd ${HYPER}/pages ; \ rm -f ht.db ; \ rm -f *~ ; \ -- Waldek Hebisch [EMAIL PROTECTED] _______________________________________________ Axiom-developer mailing list Axiom-developer@nongnu.org http://lists.nongnu.org/mailman/listinfo/axiom-developer