Re: backdir: a simple little backup/versioning utility

2013-05-07 Thread James Turner
On Mon, May 06, 2013 at 10:44:34PM -0400, Alan Corey wrote:
 On 5/6/13, James Turner ja...@calminferno.net wrote:
  I took it upon myself to throw together a port. Since it's such a simple
  tool it only needs a simple port.
 
  One request to the OP any chance you could add a 20130505 or a version
  number to the tar.gz file? That way if you ever release a new version
  the port won't break with bad checksum errors. Thanks.
 
  --
  James Turner
 
 
 Yes, there will be more versions for a little while.  Maybe posting
 this was premature, but I thought the next release was a long while
 away so it was OK.
 
 I discovered today this doesn't handle spaces in filenames (I never
 use them), so I fixed that.  Also it appends the date and time where
 the last period in a filename is, so file.tar.gz ends up
 file.tar_2013-05-06_1234.gz which looks a little funny.  I haven't
 decided how to deal with that.  Multiple periods cause a problem since
 I used strrchr('.') to place the split.
 
 If there are suggestions I might make more changes, so the checksum
 won't be stable for a little while.  I don't anticipate changing it
 very often after initial beta testing, if ever.
 
 Thank you for making a port, I was looking up how to do that, but I've
 been working on something else all day.  This probably needs week or
 so settling time: I've never published anything this way before.  How
 do I reconnect to the project?
 
 There is now a http://ab1jx.webs.com/calcs/backdir/backdir_20135056.tar.gz
 
 Thanks again,
 
   Alan Corey, ab1jx
 
 -- 
 Credit is the root of all evil.  - AB1JX
 

I've tweaked the port locally but will wait until things settle, then
I'll work on getting it imported.

If your interested in porting your other stuff or any other software the
Porter's Handbook [0] is a great place to start.

[0] http://www.openbsd.org/faq/ports/index.html

-- 
James Turner



Re: backdir: a simple little backup/versioning utility

2013-05-06 Thread James Turner
On Sun, May 05, 2013 at 10:22:53PM -0500, Abel Abraham Camarillo Ojeda wrote:
 Where is the port...?
 
 On Sun, May 5, 2013 at 10:07 PM, Alan Corey alan01...@gmail.com wrote:
  Somebody in misc@ suggested I send this to ports when I posted it there.
 
   http://ab1jx.webs.com/calcs/backdir/index.html
 
  It's for making backups at random times (manually invoked) of the
  files in a directory to a subdirectory called backups (which it will
  create if needed).  Each backup file has the name and extension of the
  original, with the last modified date and time appended to the name,
  like bd_2013-05-05_1315.c.  It only copies files changed since the
  last time it was run and it can be used for saving versions of things.
 
  Written in pure C, no dependencies, it even runs under Linux but it
  was written under OpenBSD 5.2.
 
Alan
  --
  Credit is the root of all evil.  - AB1JX
 
 

I took it upon myself to throw together a port. Since it's such a simple
tool it only needs a simple port.

One request to the OP any chance you could add a 20130505 or a version
number to the tar.gz file? That way if you ever release a new version
the port won't break with bad checksum errors. Thanks.

-- 
James Turner


backdir.tar
Description: Unix tar archive


Re: backdir: a simple little backup/versioning utility

2013-05-06 Thread James Turner
On Mon, May 06, 2013 at 07:11:41PM -0400, James Turner wrote:
 On Sun, May 05, 2013 at 10:22:53PM -0500, Abel Abraham Camarillo Ojeda wrote:
  Where is the port...?
  
  On Sun, May 5, 2013 at 10:07 PM, Alan Corey alan01...@gmail.com wrote:
   Somebody in misc@ suggested I send this to ports when I posted it there.
  
http://ab1jx.webs.com/calcs/backdir/index.html
  
   It's for making backups at random times (manually invoked) of the
   files in a directory to a subdirectory called backups (which it will
   create if needed).  Each backup file has the name and extension of the
   original, with the last modified date and time appended to the name,
   like bd_2013-05-05_1315.c.  It only copies files changed since the
   last time it was run and it can be used for saving versions of things.
  
   Written in pure C, no dependencies, it even runs under Linux but it
   was written under OpenBSD 5.2.
  
 Alan
   --
   Credit is the root of all evil.  - AB1JX
  
  
 
 I took it upon myself to throw together a port. Since it's such a simple
 tool it only needs a simple port.
 
 One request to the OP any chance you could add a 20130505 or a version
 number to the tar.gz file? That way if you ever release a new version
 the port won't break with bad checksum errors. Thanks.
 
 -- 
 James Turner

Updated to include a patch that honors CFLAGS. Might be worth
integrating upstream?

-- 
James Turner


backdir.tar
Description: Unix tar archive


Re: backdir: a simple little backup/versioning utility

2013-05-06 Thread Alan Corey
On 5/6/13, James Turner ja...@calminferno.net wrote:
 On Sun, May 05, 2013 at 10:22:53PM -0500, Abel Abraham Camarillo Ojeda
 wrote:
 Where is the port...?

 On Sun, May 5, 2013 at 10:07 PM, Alan Corey alan01...@gmail.com wrote:
  Somebody in misc@ suggested I send this to ports when I posted it
  there.
 
   http://ab1jx.webs.com/calcs/backdir/index.html
 
  It's for making backups at random times (manually invoked) of the
  files in a directory to a subdirectory called backups (which it will
  create if needed).  Each backup file has the name and extension of the
  original, with the last modified date and time appended to the name,
  like bd_2013-05-05_1315.c.  It only copies files changed since the
  last time it was run and it can be used for saving versions of things.
 
  Written in pure C, no dependencies, it even runs under Linux but it
  was written under OpenBSD 5.2.
 
Alan
  --
  Credit is the root of all evil.  - AB1JX
 


 I took it upon myself to throw together a port. Since it's such a simple
 tool it only needs a simple port.

 One request to the OP any chance you could add a 20130505 or a version
 number to the tar.gz file? That way if you ever release a new version
 the port won't break with bad checksum errors. Thanks.

 --
 James Turner


Yes, there will be more versions for a little while.  Maybe posting
this was premature, but I thought the next release was a long while
away so it was OK.

I discovered today this doesn't handle spaces in filenames (I never
use them), so I fixed that.  Also it appends the date and time where
the last period in a filename is, so file.tar.gz ends up
file.tar_2013-05-06_1234.gz which looks a little funny.  I haven't
decided how to deal with that.  Multiple periods cause a problem since
I used strrchr('.') to place the split.

If there are suggestions I might make more changes, so the checksum
won't be stable for a little while.  I don't anticipate changing it
very often after initial beta testing, if ever.

Thank you for making a port, I was looking up how to do that, but I've
been working on something else all day.  This probably needs week or
so settling time: I've never published anything this way before.  How
do I reconnect to the project?

There is now a http://ab1jx.webs.com/calcs/backdir/backdir_20135056.tar.gz

Thanks again,

  Alan Corey, ab1jx

-- 
Credit is the root of all evil.  - AB1JX



backdir: a simple little backup/versioning utility

2013-05-05 Thread Alan Corey
Somebody in misc@ suggested I send this to ports when I posted it there.

 http://ab1jx.webs.com/calcs/backdir/index.html

It's for making backups at random times (manually invoked) of the
files in a directory to a subdirectory called backups (which it will
create if needed).  Each backup file has the name and extension of the
original, with the last modified date and time appended to the name,
like bd_2013-05-05_1315.c.  It only copies files changed since the
last time it was run and it can be used for saving versions of things.

Written in pure C, no dependencies, it even runs under Linux but it
was written under OpenBSD 5.2.

  Alan
-- 
Credit is the root of all evil.  - AB1JX



Re: backdir: a simple little backup/versioning utility

2013-05-05 Thread Abel Abraham Camarillo Ojeda
Where is the port...?

On Sun, May 5, 2013 at 10:07 PM, Alan Corey alan01...@gmail.com wrote:
 Somebody in misc@ suggested I send this to ports when I posted it there.

  http://ab1jx.webs.com/calcs/backdir/index.html

 It's for making backups at random times (manually invoked) of the
 files in a directory to a subdirectory called backups (which it will
 create if needed).  Each backup file has the name and extension of the
 original, with the last modified date and time appended to the name,
 like bd_2013-05-05_1315.c.  It only copies files changed since the
 last time it was run and it can be used for saving versions of things.

 Written in pure C, no dependencies, it even runs under Linux but it
 was written under OpenBSD 5.2.

   Alan
 --
 Credit is the root of all evil.  - AB1JX