9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] cpdir
@ 2003-09-29 14:03 Kenji Arisawa
  2003-09-29 20:44 ` Kenji Arisawa
  2003-09-29 21:14 ` boyd
  0 siblings, 2 replies; 16+ messages in thread
From: Kenji Arisawa @ 2003-09-29 14:03 UTC (permalink / raw)
  To: 9fans

Hello 9fans.

cpdir is updated to ver.1.4
-x option is added

#
#	Usage
#
Usage: cpdir [-vugRm]  [-l file] [-x xfile] srcdir destdir [path ...]
Options and arguments:
	-v: verbose
	-u: copy owner info
	-g: copy group info
	-R: remove redundant files and directories in dstdir
	-m: merge
	-l file:
		A file of path list to be processed.
		Path list must be a path per line.
	-x xfile
		A file of path list that should not be copied.
		Path list must be a path per line.
		Rc style globe expression is allowed for the path.
		In the matching rule, "/" is simply a character.
	srcdir:
		source dir from which copy is made.
	destdir:
		destination dir in which copy is made.
	path ... : pathes in source to be processed.

Function:
	`cpdir' makes effort to make a copy of file in srcdir
	to dstdir. Those that are copied are:
	- contents
	- modification time
	- permissions
	- group	if possible. (under -g option)
	- owner if possible. (under -u option)
	What happens if there are files of same name
	in both source and destination?
	Let s.mtime and d.mtime be modification time of source
	and destination respectively. Then `cpdir' copies:
	- contents (if s.mtime > d.mtime)
	- modification time (if source.mtime > destination.mtime)
	- permissions (if s.mtime >= d.mtime)
	- group	(under -g option, if s.mtime >= d.mtime)
	- owner if possible. (under -u option, if s.mtime >= d.mtime)
	With -R option, `cpdir' removes files and directories
	in destination that are non-existent in source.

Kenji Arisawa

E-mail: arisawa@ar.aichi-u.ac.jp
NOTE: replace "@ar." by "@"



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2003-09-29 14:03 [9fans] cpdir Kenji Arisawa
@ 2003-09-29 20:44 ` Kenji Arisawa
  2003-09-29 21:14 ` boyd
  1 sibling, 0 replies; 16+ messages in thread
From: Kenji Arisawa @ 2003-09-29 20:44 UTC (permalink / raw)
  To: 9fans

> cpdir is updated to ver.1.4
> -x option is added

Sorry I forgot to say:
You will find at
http://plan9.aichi-u.ac.jp/netlib/cmd/cpdir-1.4.tgz

Kenji Arisawa



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2003-09-29 14:03 [9fans] cpdir Kenji Arisawa
  2003-09-29 20:44 ` Kenji Arisawa
@ 2003-09-29 21:14 ` boyd
  1 sibling, 0 replies; 16+ messages in thread
From: boyd @ 2003-09-29 21:14 UTC (permalink / raw)
  To: 9fans

cpio


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-26 13:31     ` erik quanstrom
@ 2007-03-26 15:46       ` arisawa
  0 siblings, 0 replies; 16+ messages in thread
From: arisawa @ 2007-03-26 15:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello

Current disk/mkfs works similar to cpdir
	disk/mkfs -s foo -d bar /sys/lib/proto/allproto
However old mkfs had not -d option.
Cpdir was designed and coded at that time of Plan 9 (ver.2),
so that I can make a copy of directory more handy.

Cpdir has a functionality that is different from disk/mkfs.

Kenji Arisawa

On 2007/03/26, at 22:31, erik quanstrom wrote:

> i still don't understand why this doesn't duplicate the
> functionality of disk/mkfs.  according to the comment in mkfs.c
>
> *	name: cpdir
> *	version: 1.5e
> *	date: 2005/02/19
> *	os: plan9 v4
> *	usage: cpdir [-mstugvR] [-l file] srcdir dstdir [path ...]
> *		srcdir: source directory
> *		dstdir: destination directory
> *		path: path to copy. file or directory.
> *	options:
> *		-m:	merge (this option is used if dstdir is already exist)
> *		-u: copy owner info.
> *		-g: copy groupe info.
> *		-v: verbose
> *		-R: remove redundant files in destination
> *		-s: safe mode in removing files; just renames foo to _foo
> *		-t: ignore mtime
> *		-l file: path list and pattern list file
> *
> *	path or pattern list is a file that contains path or pattern per  
> line.
>
>
> - erik
>
> On Mon Mar 26 09:27:19 EDT 2007, gabidiaz@gmail.com wrote:
>> hello
>>
>> i think he is speaking about /n/sources/contrib/arisawa/cpdir/README
>>
>> :-?
>>
>> slds.
>>
>> gabi
>>
>>
>> On 3/26/07, Gorka Guardiola <paurea@gmail.com> wrote:
>>> We have one which is a recursive cp of a directory using tar, but  
>>> you are not
>>> talking about that are you?.
>>>
>>> On 3/26/07, Russ Cox <rsc@swtch.com> wrote:
>>>> I give up: what is cpdir?
>>>>
>>>> Russ



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-26 13:26   ` Gabriel Diaz
@ 2007-03-26 13:31     ` erik quanstrom
  2007-03-26 15:46       ` arisawa
  0 siblings, 1 reply; 16+ messages in thread
From: erik quanstrom @ 2007-03-26 13:31 UTC (permalink / raw)
  To: 9fans

i still don't understand why this doesn't duplicate the
functionality of disk/mkfs.  according to the comment in mkfs.c

*	name: cpdir
*	version: 1.5e
*	date: 2005/02/19
*	os: plan9 v4
*	usage: cpdir [-mstugvR] [-l file] srcdir dstdir [path ...]
*		srcdir: source directory
*		dstdir: destination directory
*		path: path to copy. file or directory.
*	options:
*		-m:	merge (this option is used if dstdir is already exist)
*		-u: copy owner info.
*		-g: copy groupe info.
*		-v: verbose
*		-R: remove redundant files in destination
*		-s: safe mode in removing files; just renames foo to _foo
*		-t: ignore mtime
*		-l file: path list and pattern list file
*
*	path or pattern list is a file that contains path or pattern per line.


- erik

On Mon Mar 26 09:27:19 EDT 2007, gabidiaz@gmail.com wrote:
> hello
> 
> i think he is speaking about /n/sources/contrib/arisawa/cpdir/README
> 
> :-?
> 
> slds.
> 
> gabi
> 
> 
> On 3/26/07, Gorka Guardiola <paurea@gmail.com> wrote:
> > We have one which is a recursive cp of a directory using tar, but you are not
> > talking about that are you?.
> >
> > On 3/26/07, Russ Cox <rsc@swtch.com> wrote:
> > > I give up: what is cpdir?
> > >
> > > Russ


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-26 13:10 ` Gorka Guardiola
@ 2007-03-26 13:26   ` Gabriel Diaz
  2007-03-26 13:31     ` erik quanstrom
  0 siblings, 1 reply; 16+ messages in thread
From: Gabriel Diaz @ 2007-03-26 13:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hello

i think he is speaking about /n/sources/contrib/arisawa/cpdir/README

:-?

slds.

gabi


On 3/26/07, Gorka Guardiola <paurea@gmail.com> wrote:
> We have one which is a recursive cp of a directory using tar, but you are not
> talking about that are you?.
>
> On 3/26/07, Russ Cox <rsc@swtch.com> wrote:
> > I give up: what is cpdir?
> >
> > Russ
> >
>
>
> --
> - curiosity sKilled the cat
>


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-26 13:06 Russ Cox
@ 2007-03-26 13:10 ` Gorka Guardiola
  2007-03-26 13:26   ` Gabriel Diaz
  0 siblings, 1 reply; 16+ messages in thread
From: Gorka Guardiola @ 2007-03-26 13:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

We have one which is a recursive cp of a directory using tar, but you are not
talking about that are you?.

On 3/26/07, Russ Cox <rsc@swtch.com> wrote:
> I give up: what is cpdir?
>
> Russ
>


-- 
- curiosity sKilled the cat


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [9fans] cpdir
@ 2007-03-26 13:06 Russ Cox
  2007-03-26 13:10 ` Gorka Guardiola
  0 siblings, 1 reply; 16+ messages in thread
From: Russ Cox @ 2007-03-26 13:06 UTC (permalink / raw)
  To: 9fans

I give up: what is cpdir?

Russ


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-22 16:14         ` Paul Lalonde
@ 2007-03-22 17:55           ` David Leimbach
  0 siblings, 0 replies; 16+ messages in thread
From: David Leimbach @ 2007-03-22 17:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 3/22/07, Paul Lalonde <plalonde@telus.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a hideous little hack in my version of drawterm that turn F1-
> F2-F3 into the three mouse buttons to help with using my macbook.  It
> took some getting used to, but it works.  Andrey also added some
> support for using the option and apple keys as modifiers and which
> also support chording.  His change is probably more usable than mine.
>
> Paul

I use something like this with Plan 9 on Parallels, but it's a lot
easier there IMO as I just update the keymaps.

>
> On 22-Mar-07, at 4:15 AM, Abhey Shah wrote:
>
> > Neither, it lets you use native graphics on os x.
> > It's a bit nippier then the x11 version, and
> > The only problem is no support for single button trackpads/mice.
> > I made it it by doing mk -f mkfile-a in the latest $infernoroot/emu/
> > MacOSX directory.
> > Though you can use inferno as a drawterm via wmexport/wmimport and
> > 9win
> >
> > On 21 Mar 2007, at 20:03, David Leimbach wrote:
> >
> >> On 3/21/07, C H Forsyth <forsyth@vitanuova.com> wrote:
> >>> > my head of making inferno drawtermable, and leveraging the recent
> >>> > port of drawterm to os x. Then no need to use X11 for inferno.
> >>> > There's probably a better/more simple way of doing this.
> >>>
> >>> andrey has already updated a copy of inferno previously updated by
> >>> me to include paul lalonde's drawterm changes.
> >>> i need to merge andrey's latest changes in.
> >>>
> >>>
> >>
> >> And this would allow drawterm to Inferno via Inferno drawterm?  Or
> >> drawterm from Inferno to Plan 9?
> >>
> >>
> >>
> >>
> >> --
> >> - Passage Matthew 5:37:
> >>   But let your communication be, Yea, yea; Nay, nay: for whatsoever
> >> is more than these cometh of evil.
> >>
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
>
> iD8DBQFGAqtMpJeHo/Fbu1wRAlMiAJ9+9O92zmrHvgdvO8lCCj/UaGi9aACeNogj
> 00dLhFQiUiFgp9M0L7QHqGg=
> =NfxC
> -----END PGP SIGNATURE-----
>


-- 
- Passage Matthew 5:37:
   But let your communication be, Yea, yea; Nay, nay: for whatsoever
is more than these cometh of evil.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-22 11:15       ` Abhey Shah
  2007-03-22 16:14         ` Paul Lalonde
@ 2007-03-22 17:54         ` David Leimbach
  1 sibling, 0 replies; 16+ messages in thread
From: David Leimbach @ 2007-03-22 17:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 3/22/07, Abhey Shah <as234@york.ac.uk> wrote:
> Neither, it lets you use native graphics on os x.
> It's a bit nippier then the x11 version, and
> The only problem is no support for single button trackpads/mice.
> I made it it by doing mk -f mkfile-a in the latest $infernoroot/emu/
> MacOSX directory.
> Though you can use inferno as a drawterm via wmexport/wmimport and 9win
>

Yeah I realized that I totally misread after I sent the email :-).
Inferno with native graphics on Mac OS X is a huge step for me to use
it more often.  Especially when I can have things like acme-sac.

Dave

> On 21 Mar 2007, at 20:03, David Leimbach wrote:
>
> > On 3/21/07, C H Forsyth <forsyth@vitanuova.com> wrote:
> >> > my head of making inferno drawtermable, and leveraging the recent
> >> > port of drawterm to os x. Then no need to use X11 for inferno.
> >> > There's probably a better/more simple way of doing this.
> >>
> >> andrey has already updated a copy of inferno previously updated by
> >> me to include paul lalonde's drawterm changes.
> >> i need to merge andrey's latest changes in.
> >>
> >>
> >
> > And this would allow drawterm to Inferno via Inferno drawterm?  Or
> > drawterm from Inferno to Plan 9?
> >
> >
> >
> >
> > --
> > - Passage Matthew 5:37:
> >   But let your communication be, Yea, yea; Nay, nay: for whatsoever
> > is more than these cometh of evil.
> >
>
>


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-22 11:15       ` Abhey Shah
@ 2007-03-22 16:14         ` Paul Lalonde
  2007-03-22 17:55           ` David Leimbach
  2007-03-22 17:54         ` David Leimbach
  1 sibling, 1 reply; 16+ messages in thread
From: Paul Lalonde @ 2007-03-22 16:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a hideous little hack in my version of drawterm that turn F1- 
F2-F3 into the three mouse buttons to help with using my macbook.  It  
took some getting used to, but it works.  Andrey also added some  
support for using the option and apple keys as modifiers and which  
also support chording.  His change is probably more usable than mine.

Paul

On 22-Mar-07, at 4:15 AM, Abhey Shah wrote:

> Neither, it lets you use native graphics on os x.
> It's a bit nippier then the x11 version, and
> The only problem is no support for single button trackpads/mice.
> I made it it by doing mk -f mkfile-a in the latest $infernoroot/emu/ 
> MacOSX directory.
> Though you can use inferno as a drawterm via wmexport/wmimport and  
> 9win
>
> On 21 Mar 2007, at 20:03, David Leimbach wrote:
>
>> On 3/21/07, C H Forsyth <forsyth@vitanuova.com> wrote:
>>> > my head of making inferno drawtermable, and leveraging the recent
>>> > port of drawterm to os x. Then no need to use X11 for inferno.
>>> > There's probably a better/more simple way of doing this.
>>>
>>> andrey has already updated a copy of inferno previously updated by
>>> me to include paul lalonde's drawterm changes.
>>> i need to merge andrey's latest changes in.
>>>
>>>
>>
>> And this would allow drawterm to Inferno via Inferno drawterm?  Or
>> drawterm from Inferno to Plan 9?
>>
>>
>>
>>
>> -- 
>> - Passage Matthew 5:37:
>>   But let your communication be, Yea, yea; Nay, nay: for whatsoever
>> is more than these cometh of evil.
>>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFGAqtMpJeHo/Fbu1wRAlMiAJ9+9O92zmrHvgdvO8lCCj/UaGi9aACeNogj
00dLhFQiUiFgp9M0L7QHqGg=
=NfxC
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-21 20:03     ` David Leimbach
@ 2007-03-22 11:15       ` Abhey Shah
  2007-03-22 16:14         ` Paul Lalonde
  2007-03-22 17:54         ` David Leimbach
  0 siblings, 2 replies; 16+ messages in thread
From: Abhey Shah @ 2007-03-22 11:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Neither, it lets you use native graphics on os x.
It's a bit nippier then the x11 version, and
The only problem is no support for single button trackpads/mice.
I made it it by doing mk -f mkfile-a in the latest $infernoroot/emu/ 
MacOSX directory.
Though you can use inferno as a drawterm via wmexport/wmimport and 9win

On 21 Mar 2007, at 20:03, David Leimbach wrote:

> On 3/21/07, C H Forsyth <forsyth@vitanuova.com> wrote:
>> > my head of making inferno drawtermable, and leveraging the recent
>> > port of drawterm to os x. Then no need to use X11 for inferno.
>> > There's probably a better/more simple way of doing this.
>>
>> andrey has already updated a copy of inferno previously updated by
>> me to include paul lalonde's drawterm changes.
>> i need to merge andrey's latest changes in.
>>
>>
>
> And this would allow drawterm to Inferno via Inferno drawterm?  Or
> drawterm from Inferno to Plan 9?
>
>
>
>
> -- 
> - Passage Matthew 5:37:
>   But let your communication be, Yea, yea; Nay, nay: for whatsoever
> is more than these cometh of evil.
>



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-21 17:22   ` C H Forsyth
@ 2007-03-21 20:03     ` David Leimbach
  2007-03-22 11:15       ` Abhey Shah
  0 siblings, 1 reply; 16+ messages in thread
From: David Leimbach @ 2007-03-21 20:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 3/21/07, C H Forsyth <forsyth@vitanuova.com> wrote:
> > my head of making inferno drawtermable, and leveraging the recent
> > port of drawterm to os x. Then no need to use X11 for inferno.
> > There's probably a better/more simple way of doing this.
>
> andrey has already updated a copy of inferno previously updated by
> me to include paul lalonde's drawterm changes.
> i need to merge andrey's latest changes in.
>
>

And this would allow drawterm to Inferno via Inferno drawterm?  Or
drawterm from Inferno to Plan 9?




-- 
- Passage Matthew 5:37:
   But let your communication be, Yea, yea; Nay, nay: for whatsoever
is more than these cometh of evil.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-21 17:15 ` Abhey Shah
@ 2007-03-21 17:22   ` C H Forsyth
  2007-03-21 20:03     ` David Leimbach
  0 siblings, 1 reply; 16+ messages in thread
From: C H Forsyth @ 2007-03-21 17:22 UTC (permalink / raw)
  To: 9fans

> my head of making inferno drawtermable, and leveraging the recent  
> port of drawterm to os x. Then no need to use X11 for inferno.  
> There's probably a better/more simple way of doing this.

andrey has already updated a copy of inferno previously updated by
me to include paul lalonde's drawterm changes.
i need to merge andrey's latest changes in.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] cpdir
  2007-03-21 15:44 Devon H. O'Dell
@ 2007-03-21 17:15 ` Abhey Shah
  2007-03-21 17:22   ` C H Forsyth
  0 siblings, 1 reply; 16+ messages in thread
From: Abhey Shah @ 2007-03-21 17:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On 21 Mar 2007, at 15:44, Devon H. O'Dell wrote:

> Since I'm getting back into the swing of things, I want to give
> praises as well as scoldings.
>
> Scoldings: interoperability for doing things like exporting
> filesystems to Inferno and importing these is a huge pain in the ass,
> and poorly documented. (Yes, I know, write documents, Devon). I'm just
> pointing out that, after talking with Kris for 2 hours last night, I
> finally got the magical auth stuff and everything working well enough
> to mount my Inferno exported filesystem. (I tried exporting from Plan
> 9 to Inferno, but I kept getting fversion conversion problems).

Please do write it up, I currently have a idea running in the back of  
my head of making inferno drawtermable, and leveraging the recent  
port of drawterm to os x. Then no need to use X11 for inferno.  
There's probably a better/more simple way of doing this.


>
> A lot of my problems are due to misconceptions and misunderstandings
> about what things do.
>
> Praises: cpdir -m is amazing. 10 thumbs up. Cookies, kudos and beer.
> Utilities like this need to be in the main distribution.
>
> --dho
>



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [9fans] cpdir
@ 2007-03-21 15:44 Devon H. O'Dell
  2007-03-21 17:15 ` Abhey Shah
  0 siblings, 1 reply; 16+ messages in thread
From: Devon H. O'Dell @ 2007-03-21 15:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Since I'm getting back into the swing of things, I want to give
praises as well as scoldings.

Scoldings: interoperability for doing things like exporting
filesystems to Inferno and importing these is a huge pain in the ass,
and poorly documented. (Yes, I know, write documents, Devon). I'm just
pointing out that, after talking with Kris for 2 hours last night, I
finally got the magical auth stuff and everything working well enough
to mount my Inferno exported filesystem. (I tried exporting from Plan
9 to Inferno, but I kept getting fversion conversion problems).

A lot of my problems are due to misconceptions and misunderstandings
about what things do.

Praises: cpdir -m is amazing. 10 thumbs up. Cookies, kudos and beer.
Utilities like this need to be in the main distribution.

--dho


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-03-26 15:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 14:03 [9fans] cpdir Kenji Arisawa
2003-09-29 20:44 ` Kenji Arisawa
2003-09-29 21:14 ` boyd
2007-03-21 15:44 Devon H. O'Dell
2007-03-21 17:15 ` Abhey Shah
2007-03-21 17:22   ` C H Forsyth
2007-03-21 20:03     ` David Leimbach
2007-03-22 11:15       ` Abhey Shah
2007-03-22 16:14         ` Paul Lalonde
2007-03-22 17:55           ` David Leimbach
2007-03-22 17:54         ` David Leimbach
2007-03-26 13:06 Russ Cox
2007-03-26 13:10 ` Gorka Guardiola
2007-03-26 13:26   ` Gabriel Diaz
2007-03-26 13:31     ` erik quanstrom
2007-03-26 15:46       ` arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).