[35212] trunk/dports/editors/vim-app

raimue at macports.org raimue at macports.org
Thu Mar 20 18:31:53 PDT 2008


Revision: 35212
          http://trac.macosforge.org/projects/macports/changeset/35212
Author:   raimue at macports.org
Date:     2008-03-20 18:31:52 -0700 (Thu, 20 Mar 2008)

Log Message:
-----------
editors/vim-app:
Update for the gvim.sh script to also work with stdin, closes #14620

Modified Paths:
--------------
    trunk/dports/editors/vim-app/Portfile
    trunk/dports/editors/vim-app/files/gvim.sh

Modified: trunk/dports/editors/vim-app/Portfile
===================================================================
--- trunk/dports/editors/vim-app/Portfile	2008-03-21 00:35:36 UTC (rev 35211)
+++ trunk/dports/editors/vim-app/Portfile	2008-03-21 01:31:52 UTC (rev 35212)
@@ -7,6 +7,7 @@
 set vim_version     7.1
 set vim_patchlevel  270
 version             ${vim_version}.${vim_patchlevel}
+revision            1
 categories          editors
 maintainers         raimue
 description         Vim.app is a GUI version of the famous editor vim.

Modified: trunk/dports/editors/vim-app/files/gvim.sh
===================================================================
--- trunk/dports/editors/vim-app/files/gvim.sh	2008-03-21 00:35:36 UTC (rev 35211)
+++ trunk/dports/editors/vim-app/files/gvim.sh	2008-03-21 01:31:52 UTC (rev 35212)
@@ -48,7 +48,11 @@
 	# terminal instead of the console log.
 	# But if you use open instead, you will need to fully qualify the
 	# path names for any filenames you specify, which is hard.
-	exec "$binary" -g $opts ${1:+"$@"} &
+	if [[ "$1" == "-" ]]; then
+		cat | exec "$binary" -g $opts ${1:+"$@"} &
+	else
+		exec "$binary" -g $opts ${1:+"$@"} &
+	fi
 else
 	exec "$binary" $opts ${1:+"$@"}
 fi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080320/e09c4e77/attachment.html 


More information about the macports-changes mailing list