I got no responses to this, but I thought I'd try again since IOhannes was talking about cleaning up the CVS.
Any objections?
.hc
Begin forwarded message:
From: Hans-Christoph Steiner hans@eds.org Date: March 10, 2005 4:35:06 PM EST To: pd-dev pd-dev@iem.at Subject: [PD-dev] "scripts" section of CVS X-Mailer: Apple Mail (2.619.2)
I am thinking of starting a "scripts" section of the CVS because I have written two handy scripts for Pd and there doesn't seem to be a logical place to put them in CVS. I have a /etc/init.d/pd SysV-style start/stop script and pd-diff, a rough idea of how to get useful results from diffing .pd files.
Any objections, ideas, comments?
.hc
Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams
________________________________________________________________________ ____
There is no way to peace, peace is the way. -A.J. Muste
Hmmm,
Would/Could python scripts aimed at PD tasks fit in here?
I'm not sure if I should wrap my python scripts into abstractions or not... abstractions would be easier to use, [dirlist] rather than [py pt dirlist] and the whole special message to py in the first inlet.
I suppose scripts that deal with the pdsend receive format could fit in there...
B.
Hans-Christoph Steiner wrote:
I got no responses to this, but I thought I'd try again since IOhannes was talking about cleaning up the CVS.
Any objections?
.hc
Begin forwarded message:
*From: *Hans-Christoph Steiner <hans@eds.org> *Date: *March 10, 2005 4:35:06 PM EST *To: *pd-dev <pd-dev@iem.at> *Subject: [PD-dev] "scripts" section of CVS X-Mailer: *Apple Mail (2.619.2) I am thinking of starting a "scripts" section of the CVS because I have written two handy scripts for Pd and there doesn't seem to be a logical place to put them in CVS. I have a /etc/init.d/pd SysV-style start/stop script and pd-diff, a rough idea of how to get useful results from diffing .pd files. Any objections, ideas, comments? .hc ____________________________________________________________________________ Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams
There is no way to peace, peace is the way. -A.J. Muste
The python scripts could fit there but I am not really sure what they do. If they are meant for general use, then they would fit there. If they are specifically for pixelTANGO, I'd say keep them with pixelTANGO.
The scripts that I made me think of adding this section are a pd diff script, a SysV init script (/etc/init.d/pd), and now the MacOS X plist swapper script.
pdsend/pdreceive scripts seem to fit well there also.
.hc
On Mar 26, 2005, at 6:42 PM, B. Bogart wrote:
Hmmm,
Would/Could python scripts aimed at PD tasks fit in here?
I'm not sure if I should wrap my python scripts into abstractions or not... abstractions would be easier to use, [dirlist] rather than [py pt dirlist] and the whole special message to py in the first inlet.
I suppose scripts that deal with the pdsend receive format could fit in there...
B.
Hans-Christoph Steiner wrote:
I got no responses to this, but I thought I'd try again since IOhannes was talking about cleaning up the CVS.
Any objections?
.hc
Begin forwarded message:
*From: *Hans-Christoph Steiner <hans@eds.org> *Date: *March 10, 2005 4:35:06 PM EST *To: *pd-dev <pd-dev@iem.at> *Subject: [PD-dev] "scripts" section of CVS X-Mailer: *Apple Mail (2.619.2) I am thinking of starting a "scripts" section of the CVS because I have written two handy scripts for Pd and there doesn't seem to
be a logical place to put them in CVS. I have a /etc/init.d/pd SysV-style start/stop script and pd-diff, a rough idea of how to get useful results from diffing .pd files.
Any objections, ideas, comments? .hc
Man has survived hitherto because he was too ignorant to know how
to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams
There is no way to peace, peace is the way. -A.J. Muste
________________________________________________________________________ ____
"Computer science is no more related to the computer than astronomy is related to the telescope." -Edsger Dykstra
*cough*
There are of course of general use just to help me with making the pixelTANGO abstractions easier and less redundant. So far I have:
stripExtension which allows you to remove the .pd part of a filename so you can call it as an abstraction in the patch.
stripPath removes the path component of a filename leaving just the "tail" this is useful for #1, making popup's full of files show only the tail and not the WHOLE path to the file. This system will need a little help to make it work better. This is also useful to generate a pd-abstraction.pd name from a set of listed files.
dirlist just globs the files in a certain folder.
There will probably be more things like this as things move along.
So there are two parts to these things, the script (currently called "pt.py" which contains the python code for all of them.) and abstraction wrappers that look like:
[inlet] | [py pt (function)] | [outlet]
Where (function) is the name of the abstraction as well as the method in the pt.py file. dirlist, stripExtension, stripPath.
These patches are so simple that they could be generated from the pt.py script.
The only reason I did not use pyext is that there seems to be more code for the same thing and the same complex treatment of atom types and such. This method looks to be much faster.
My main reason for asking the question was that we have both the abstractions (that should reasonably go into abstractions) and then the script part, that should go in scripts/ or along side the abstractions in abstractions? (since the script needs to be in the pd path anyhow).
I think it makes more sense to put it all in the abstractions section, but perhaps the script to generate the patches should be in scripts... Arg!
Advice?
b>
Hans-Christoph Steiner wrote:
The python scripts could fit there but I am not really sure what they do. If they are meant for general use, then they would fit there. If they are specifically for pixelTANGO, I'd say keep them with pixelTANGO.
The scripts that I made me think of adding this section are a pd diff script, a SysV init script (/etc/init.d/pd), and now the MacOS X plist swapper script.
pdsend/pdreceive scripts seem to fit well there also.
.hc
On Mar 26, 2005, at 6:42 PM, B. Bogart wrote:
Hmmm,
Would/Could python scripts aimed at PD tasks fit in here?
I'm not sure if I should wrap my python scripts into abstractions or not... abstractions would be easier to use, [dirlist] rather than [py pt dirlist] and the whole special message to py in the first inlet.
I suppose scripts that deal with the pdsend receive format could fit in there...
B.
Hans-Christoph Steiner wrote:
I got no responses to this, but I thought I'd try again since IOhannes was talking about cleaning up the CVS.
Any objections?
.hc
Begin forwarded message:
*From: *Hans-Christoph Steiner <hans@eds.org> *Date: *March 10, 2005 4:35:06 PM EST *To: *pd-dev <pd-dev@iem.at> *Subject: [PD-dev] "scripts" section of CVS X-Mailer: *Apple Mail (2.619.2) I am thinking of starting a "scripts" section of the CVS because I have written two handy scripts for Pd and there doesn't seem to
be a logical place to put them in CVS. I have a /etc/init.d/pd SysV-style start/stop script and pd-diff, a rough idea of how to get useful results from diffing .pd files.
Any objections, ideas, comments? .hc
Man has survived hitherto because he was too ignorant to know
how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams
There is no way to peace, peace is the way. -A.J. Muste
"Computer science is no more related to the computer than astronomy is related to the telescope." -Edsger Dykstra
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
I am thinking of starting a "scripts" section of the CVS because I have written two handy scripts for Pd and there doesn't seem to be a logical place to put them in CVS. I have a /etc/init.d/pd SysV-style start/stop script and pd-diff, a rough idea of how to get useful results from diffing .pd files.
I would prefer another name. "stuff" is taken ;) maybe "utils" would be an alternative? "scripts" might be a subdirectory there. Background is: The directory might need to hold other things besides scripts. However if it only should hold scripts, then go along.
Ciao
On Mar 27, 2005, at 2:23 AM, Frank Barknecht wrote:
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
I am thinking of starting a "scripts" section of the CVS because I have written two handy scripts for Pd and there doesn't seem to be a logical place to put them in CVS. I have a /etc/init.d/pd SysV-style start/stop script and pd-diff, a rough idea of how to get useful results from diffing .pd files.
I would prefer another name. "stuff" is taken ;) maybe "utils" would be an alternative? "scripts" might be a subdirectory there. Background is: The directory might need to hold other things besides scripts. However if it only should hold scripts, then go along.
How about "other"? ;) "utils" could work. I guess 'scripts' is very UNIX-centric and describes the implementation method more than the functionality. Somehow "utils" sounds too DOS-like to me... hmm... naming can be so tricky sometimes... how about 'utilities'?
Like this: utilities --unix (/etc/init.d/pd) --darwin (Pd.command files) --devel (pd-diff, config-swapper.sh)
Or shall I just dump everything into one directory since they are only a few scripts. We can move them into categories if we get lots of scripts/utilities.
.hc
Ciao
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
________________________________________________________________________ ____
¡El pueblo unido jamás será vencido!
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
How about "other"? ;)
"/var" ;)
"utils" could work. I guess 'scripts' is very UNIX-centric and describes the implementation method more than the functionality. Somehow "utils" sounds too DOS-like to me... hmm... naming can be so tricky sometimes... how about 'utilities'?
Like this: utilities --unix (/etc/init.d/pd) --darwin (Pd.command files) --devel (pd-diff, config-swapper.sh)
I like "utilities". Regarding the naming of the subdirs, I don't have any preferences, IMO everything goes. Apart from operating systems also subdirs like "network" or "hans" would be possible.
Ciao