Re: [Fink-devel] Script to change emails

2003-11-09 Thread Rohan Lloyd
On 8 Nov 2003, at 6:04 PM, Jeremy Higgs wrote:

Hi everyone!

Does anyone have a script that would allow me to change the email 
listed in each of the .info files for packages I maintain? I've done a 
little bit of simple shell scripting, so I was going to do it that way 
using a whole lot of for loops, but I'm not sure how to do it 
completely. If anyone has a script already (I remember some developers 
changing emails before) that I could look at, that would be great!
You can do it in emacs using tags-query-replace

First create a TAGS file for all info files

  cd /sw/fink
  find . -name *.info | xargs etags
Fire up emacs, and go:

  M-x tags-query-replace

enter the string you want to replace, and what you want to change it 
to, and go. It will open up each file in which a match is found. You 
can then either accept/reject individual changes, or type '!' to change 
all occurrences in that file.

Voila!

--
Rohan Lloyd


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Script to change emails

2003-11-08 Thread Jeremy Higgs
Hi everyone!

Does anyone have a script that would allow me to change the email 
listed in each of the .info files for packages I maintain? I've done a 
little bit of simple shell scripting, so I was going to do it that way 
using a whole lot of for loops, but I'm not sure how to do it 
completely. If anyone has a script already (I remember some developers 
changing emails before) that I could look at, that would be great!

I've got this so far, but I'm not sure if it will work (and it's not 
finished yet, obviously):

#!/bin/sh

DIR = 10.2 10.2-gcc3.3 10.3

for dist in $DIR
 do
  for tree in dist
   do
for branch in tree
 do
 cd finkinfo;
 if (tree == local) then
 for file in `ls -1 *.info`
  do
   insert sed command here
done
 else
for folder in `ls -1 .`
 do
  insert sed command here
done
  done
 done
done
Can anyone help me out?

Thanks a lot!



---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Script to change emails

2003-11-08 Thread Remi Mommsen
Hi,

I'd try it with the rpl (RePLace) command available from fink package 
rpl. See 'man rpl' for details.

HTH,
Remi
On Friday, November 7, 2003, at 11:04  PM, Jeremy Higgs wrote:

Hi everyone!

Does anyone have a script that would allow me to change the email 
listed in each of the .info files for packages I maintain? I've done a 
little bit of simple shell scripting, so I was going to do it that way 
using a whole lot of for loops, but I'm not sure how to do it 
completely. If anyone has a script already (I remember some developers 
changing emails before) that I could look at, that would be great!

I've got this so far, but I'm not sure if it will work (and it's not 
finished yet, obviously):

#!/bin/sh

DIR = 10.2 10.2-gcc3.3 10.3

for dist in $DIR
 do
  for tree in dist
   do
for branch in tree
 do
 cd finkinfo;
 if (tree == local) then
 for file in `ls -1 *.info`
  do
   insert sed command here
done
 else
for folder in `ls -1 .`
 do
  insert sed command here
done
  done
 done
done
Can anyone help me out?

Thanks a lot!



---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel



-
Failure is not an option.
It comes bundled with your Microsoft product.   (Ferenc Mantfeld)
*
Remigius K. Mommsen e-mail: [EMAIL PROTECTED]
University of California, Irvine   URL:http://cern.ch/mommsen
c/o SLAC voice:++1 (650) 926-3595
2575 Sand Hill Road #35fax:++1 (650) 926-3882
Menlo Park, CA 94025, US  home:++1 (650) 233-9041
*


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Script to change emails

2003-11-08 Thread Jeremy Higgs
Thanks! That worked a treat! Much easier than shell scripting. :)

On 08/11/2003, at 6:23 PM, Remi Mommsen wrote:

Hi,

I'd try it with the rpl (RePLace) command available from fink package 
rpl. See 'man rpl' for details.

HTH,
Remi
On Friday, November 7, 2003, at 11:04  PM, Jeremy Higgs wrote:

Hi everyone!

Does anyone have a script that would allow me to change the email 
listed in each of the .info files for packages I maintain? I've done 
a little bit of simple shell scripting, so I was going to do it that 
way using a whole lot of for loops, but I'm not sure how to do it 
completely. If anyone has a script already (I remember some 
developers changing emails before) that I could look at, that would 
be great!

I've got this so far, but I'm not sure if it will work (and it's not 
finished yet, obviously):

#!/bin/sh

DIR = 10.2 10.2-gcc3.3 10.3

for dist in $DIR
 do
  for tree in dist
   do
for branch in tree
 do
 cd finkinfo;
 if (tree == local) then
 for file in `ls -1 *.info`
  do
   insert sed command here
done
 else
for folder in `ls -1 .`
 do
  insert sed command here
done
  done
 done
done
Can anyone help me out?

Thanks a lot!



---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel



-
Failure is not an option.
It comes bundled with your Microsoft product.   (Ferenc Mantfeld)
*
Remigius K. Mommsen e-mail: [EMAIL PROTECTED]
University of California, Irvine   URL:http://cern.ch/mommsen
c/o SLAC voice:++1 (650) 926-3595
2575 Sand Hill Road #35fax:++1 (650) 926-3882
Menlo Park, CA 94025, US  home:++1 (650) 233-9041
*


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel