Skip to content

Instantly share code, notes, and snippets.

@alexreg
Last active December 10, 2015 07:58
Show Gist options
  • Save alexreg/4404588 to your computer and use it in GitHub Desktop.
Save alexreg/4404588 to your computer and use it in GitHub Desktop.
Patches for tools-osx (https://github.com/morgant/tools-osx)
From d4a2e0b5eb93b041b7c1b8e917923a0428434723 Mon Sep 17 00:00:00 2001
From: Alex Regueiro <alexreg@gmail.com>
Date: Sat, 29 Dec 2012 05:12:33 +0000
Subject: [PATCH] Update src/32bitSafePerl
Now supports OS X 10.8.x (Mountain Lion).
---
src/32bitSafePerl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/32bitSafePerl b/src/32bitSafePerl
index 35cc665..e3aefc8 100755
--- a/src/32bitSafePerl
+++ b/src/32bitSafePerl
@@ -19,11 +19,11 @@ version_major=$(sw_vers -productVersion | cut -d . -f 2)
#version_minor=$(sw_vers -productVersion | cut -d . -f 3)
interpreter=''
-# 10.7.x now has no 32-bit only version of Perl included, so we
+# 10.7.x onwards now has no 32-bit only version of Perl included, so we
# need to set Perl's prefer-32-Bit default
-if [ $version_major -eq 7 ]; then
+if [ $version_major -ge 7 ]; then
if [ "$(defaults read com.apple.versioner.perl Prefer-32-Bit)" != "1" ]; then
- printf "Mac OS X 10.7.x Lion requires that we set Perl's 'Prefer-32-Bit' default for %s to work properly.\n" "$1"
+ printf "Mac OS X 10.7 and later require that we set Perl's 'Prefer-32-Bit' default for %s to work properly.\n" "$1"
printf "Shall we do that for you (y/n)?"
read confirm
if [ "$confirm" = "y" ]; then
--
1.7.10
From 699dfadf82a003e9ca138f51f3561d506eb21a01 Mon Sep 17 00:00:00 2001
From: Chad Skeeters <chad.skeeters@gmail.com>
Date: Fri, 30 Nov 2012 15:30:42 -0600
Subject: [PATCH] Modified dict so that it will compile.
---
src/dict | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dict b/src/dict
index 509e127..33a74ee 100755
--- a/src/dict
+++ b/src/dict
@@ -30,8 +30,8 @@ else
ARGV.each do |word|
# handle options
if word =~ /^-/
- word = case
- when '-h':
+ case word
+ when '-h'
puts <<-EOF
Usage: #{File.basename $0} [options] word ...
-v verbose output
--
1.7.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment