#15106: Allow sage --spkg from a different directory
----------------------------------+----------------------------
       Reporter:  jdemeyer        |        Owner:
           Type:  enhancement     |       Status:  needs_review
       Priority:  major           |    Milestone:  sage-5.12
      Component:  scripts         |   Resolution:
       Keywords:                  |    Merged in:
        Authors:  Jeroen Demeyer  |    Reviewers:
Report Upstream:  N/A             |  Work issues:
         Branch:                  |       Commit:
   Dependencies:                  |     Stopgaps:
----------------------------------+----------------------------
Changes (by jdemeyer):

 * status:  new => needs_review


Old description:

> I'd like to be able to do the following from within the directory of a
> spkg:
> {{{
> sage --spkg .   # current directory
> }}}
> but that doesn't work properly (it would create a file `..spkg`).
>
> Therefore, I propose that
> {{{
> sage --spkg DIR
> }}}
> first does a `cd DIR/..` and then creates the package from there.

New description:

 I'd like to be able to do the following from within the directory of a
 spkg:
 {{{
 sage --spkg .   # current directory
 }}}
 but that doesn't work properly (it would create a file `..spkg`).

 Therefore, I propose that
 {{{
 sage --spkg DIR
 }}}
 first does a `cd DIR/..` and then creates the package from there.

 The attached patch also adds some additional checks, for example that a
 changelog entry exists in `SPKG.txt`.

 '''Apply''' [attachment:15106_sage_pkg_chdir.patch] to `$SAGE_LOCAL/bin`.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15106#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to