diff options
author | knu <knu@FreeBSD.org> | 2002-11-20 15:15:34 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-11-20 15:15:34 +0800 |
commit | 9244c69a3bab3d21da86cd7265069d491abd8b36 (patch) | |
tree | 5e127907f89eddbfe9a4fef6c8085601d95c806d /sysutils/portupgrade | |
parent | e11df61b4b8c28b04f205042145aef60c24f22da (diff) | |
download | freebsd-ports-graphics-9244c69a3bab3d21da86cd7265069d491abd8b36.tar.gz freebsd-ports-graphics-9244c69a3bab3d21da86cd7265069d491abd8b36.tar.zst freebsd-ports-graphics-9244c69a3bab3d21da86cd7265069d491abd8b36.zip |
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
Diffstat (limited to 'sysutils/portupgrade')
-rw-r--r-- | sysutils/portupgrade/files/patch-pkgtools.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/portupgrade/files/patch-pkgtools.rb b/sysutils/portupgrade/files/patch-pkgtools.rb new file mode 100644 index 00000000000..8caf4b3d3bf --- /dev/null +++ b/sysutils/portupgrade/files/patch-pkgtools.rb @@ -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) |