[pmwiki-users] extra guidelines for recipe publishing
Patrick R. Michaud
pmichaud at pobox.com
Mon Apr 9 14:43:49 CDT 2007
On Mon, Apr 09, 2007 at 10:54:31AM +0100, Hans wrote:
> Monday, April 9, 2007, 10:18:41 AM, Hans wrote:
>
> > Maybe all I am missing is some tricks how to construct a zip archive
> > with the correct path information for all files, which can unzip into
> > several folders, i.e. into cookbook/ and pub/ and creating a subfolder
> > in each.
>
> I like Hagan's package (=your recipe name) proposal from
> http://www.pmwiki.org/wiki/Cookbook/ModuleGuidelines :
>
> package-0.01/
> |-- cookbook
> ...
I like Hagan's approach as well, except I normally don't have a
top-level "package-0.01" directory but assume that packages are
unpacking directly into the pmwiki root:
|-- cookbook/
| |-- package.php
| `-- package/
| |-- README.txt
| |-- LICENSE.txt
| ...etc...
`-- pub
`-- package
|-- package.js
|-- package.jpg
...etc...
> okay I have not understood the sentence below,
> I don't know what that command is, nor how to execute it. Perhaps Unix?
> I am on a Windoze machine. (I also often get confused with terminology like
> bar.php, baz.php and the foo things.)
>
> "This way, the files can be copied recursively ("cp -r foo-0.1/* pmwiki")
> from within their package directory into the PmWiki top-level directory
> and fit into the appropriate directory."
On a unix system, if the package unzips into a directory
called "package-0.1" (or "foo-0.1" in the example quoted above),
the administrator then has to move the files out of the
package directory into the PmWiki root. From a command line,
this is done with something like
cp -r package-0.1/* pmwiki
that says to recursively (-r) copy all files from the package-0.1/
directory into the pmwiki/ (root) directory. Files from
package-0.1/cookbook/ would appear in pmwiki/cookbook/,
files from package-0.1/pub/ would appear in pmwiki/pub/,
etc.
Hope this helps,
Pm
More information about the pmwiki-users
mailing list