summaryrefslogtreecommitdiff
path: root/homebrew/vip/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/vip/patches.sh')
-rwxr-xr-xhomebrew/vip/patches.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/homebrew/vip/patches.sh b/homebrew/vip/patches.sh
new file mode 100755
index 000000000..0a95f884a
--- /dev/null
+++ b/homebrew/vip/patches.sh
@@ -0,0 +1,27 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/vip b/vip
+index f150167..e517675 100644
+--- a/vip
++++ b/vip
+@@ -66,7 +66,7 @@ Usage: $PROG [ -no ] [ command ]
+ otherwise stdin is used;
+ "
+
+-: ${TMPDIR:="/usr/tmp"} # where temp. files go
++: ${TMPDIR:="/var/tmp"} # where temp. files go
+ TEMP_FILE="$TMPDIR/$PROG.$$" # temp. file to hold data to edit
+ COMMAND="cat" # default command to produce input
+ DFLT_ED="vi" # default editor
+@@ -81,6 +81,10 @@ case "$SYS" in
+ ;;
+ "HP-UX "*)
+ AWK=awk
++ ;;
++ "Darwin "*)
++ AWK=awk
++ ;;
+ esac
+
+ #
+EOF