#10830: Make pari support SAGE_SPKG_INSTALL_DOCS
----------------------------+-----------------------------------------------
Reporter: jason | Owner: tbd
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.7
Component: packages | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: David Kirkby | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Changes (by drkirkby):
* status: needs_review => needs_work
Comment:
The '-r' is unnecessary on the 'cp' command.
I think I know what you are trying to achieve, but be warned this syntax
would never work if there were pdf files in sub-directories. Luckily in
this case there are not, so a simple 'cp', with no options, will do.
If there were however any PDFs in sub-directories, and it was not possible
to do a simple cp -r, because of other files, then one would probably use
'find' to locate the PDF files and tar to copy them from one place and put
them in another. The syntax for doing this is non-trivial, and would be
something like that below, where one:
* Uses 'find' to find all the PDF files.
* Uses 'tar' to create an archive of the PDF files, but instead of
writing it to an intermediate file, one writes the archive on standard
output.
* Uses 'cd' to change to the directory where the files need to be
extracted.
* Uses 'tar', which reads from standard input, to extract the files
written by the other tar.
{{{
tar cf - `find doc -name '*.pdf'` | ( cd
"$SAGE_ROOT/local/share/doc/pari"; tar xfp -)
}}}
Note the above is untested.
In this case, simply remove the '-r' and what you have will be get a
positive review.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10830#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.