1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

Add a patch to make portupgrade(1) work on somewhat older systems

which sed(1) does not have a -E option.

Pointed out by:	nork
This commit is contained in:
Akinori MUSHA 2002-11-20 07:15:34 +00:00
parent 25fc54822e
commit 5d7fea9006
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70541
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,14 @@
Index: lib/pkgtools.rb
===================================================================
RCS file: /home/cvs/pkgtools/lib/pkgtools.rb,v
retrieving revision 1.100
diff -u -1 -r1.100 pkgtools.rb
--- lib/pkgtools.rb 19 Nov 2002 04:53:50 -0000 1.100
+++ lib/pkgtools.rb 20 Nov 2002 06:01:28 -0000
@@ -649,4 +649,4 @@
- filter_file(shelljoin('sed', '-E',
- "s|^(@comment[[:space:]]+ORIGIN:).*$|\\1#{origin}|"),
+ filter_file(shelljoin('sed',
+ "s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|"),
contents_file)

View File

@ -0,0 +1,14 @@
Index: lib/pkgtools.rb
===================================================================
RCS file: /home/cvs/pkgtools/lib/pkgtools.rb,v
retrieving revision 1.100
diff -u -1 -r1.100 pkgtools.rb
--- lib/pkgtools.rb 19 Nov 2002 04:53:50 -0000 1.100
+++ lib/pkgtools.rb 20 Nov 2002 06:01:28 -0000
@@ -649,4 +649,4 @@
- filter_file(shelljoin('sed', '-E',
- "s|^(@comment[[:space:]]+ORIGIN:).*$|\\1#{origin}|"),
+ filter_file(shelljoin('sed',
+ "s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|"),
contents_file)

View File

@ -0,0 +1,14 @@
Index: lib/pkgtools.rb
===================================================================
RCS file: /home/cvs/pkgtools/lib/pkgtools.rb,v
retrieving revision 1.100
diff -u -1 -r1.100 pkgtools.rb
--- lib/pkgtools.rb 19 Nov 2002 04:53:50 -0000 1.100
+++ lib/pkgtools.rb 20 Nov 2002 06:01:28 -0000
@@ -649,4 +649,4 @@
- filter_file(shelljoin('sed', '-E',
- "s|^(@comment[[:space:]]+ORIGIN:).*$|\\1#{origin}|"),
+ filter_file(shelljoin('sed',
+ "s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|"),
contents_file)

View File

@ -0,0 +1,14 @@
Index: lib/pkgtools.rb
===================================================================
RCS file: /home/cvs/pkgtools/lib/pkgtools.rb,v
retrieving revision 1.100
diff -u -1 -r1.100 pkgtools.rb
--- lib/pkgtools.rb 19 Nov 2002 04:53:50 -0000 1.100
+++ lib/pkgtools.rb 20 Nov 2002 06:01:28 -0000
@@ -649,4 +649,4 @@
- filter_file(shelljoin('sed', '-E',
- "s|^(@comment[[:space:]]+ORIGIN:).*$|\\1#{origin}|"),
+ filter_file(shelljoin('sed',
+ "s|^\\(@comment[ \t][ \t]*ORIGIN:\\).*$|\\1#{origin}|"),
contents_file)