diff options
Diffstat (limited to 'homebrew/renameutils/patches.sh')
-rwxr-xr-x | homebrew/renameutils/patches.sh | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/homebrew/renameutils/patches.sh b/homebrew/renameutils/patches.sh new file mode 100755 index 000000000..f6ebc8030 --- /dev/null +++ b/homebrew/renameutils/patches.sh @@ -0,0 +1,52 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +--- a/src/apply.c ++++ b/src/apply.c +@@ -72,9 +72,9 @@ perform_command(FileSpec *spec) + if (force_command != NULL) + command = force_command; + else if (strcmp(program, "qmv") == 0) +- command = "mv"; ++ command = "gmv"; + else +- command = "cp"; ++ command = "gcp"; + + child = fork(); + if (child < 0) { +--- a/src/icmd.c ++++ b/src/icmd.c +@@ -45,8 +45,8 @@ + #include "common/string-utils.h" + #include "common/common.h" + +-#define MV_COMMAND "mv" +-#define CP_COMMAND "cp" ++#define MV_COMMAND "gmv" ++#define CP_COMMAND "gcp" + /* This list should be up to date with mv and cp! + * It was last updated on 2007-11-30 for + * Debian coreutils 5.97-5.4 in unstable. +--- a/src/qcmd.c 2011-08-21 10:15:51.000000000 -0700 ++++ b/src/qcmd.c 2012-06-28 15:51:48.000000000 -0700 +@@ -239,7 +239,7 @@ + editor_program = xstrdup(editor_program); + + if (ls_program == NULL) +- ls_program = xstrdup("ls"); ++ ls_program = xstrdup("gls"); + + /* Parse format options */ + if (format_options != NULL && !format->parse_options(format_options)) +--- a/src/Makefile.in 2012-04-23 04:24:10.000000000 -0700 ++++ b/src/Makefile.in 2012-06-29 00:42:45.000000000 -0700 +@@ -1577,7 +1577,7 @@ + @[ -f icp ] || (echo $(LN_S) icmd icp ; $(LN_S) icmd icp) + + install-exec-local: +- $(mkdir_p) $(DESTDIR)($bindir) ++ $(mkdir_p) $(DESTDIR)$(bindir) + @[ -f $(DESTDIR)$(bindir)/qmv ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv) + @[ -f $(DESTDIR)$(bindir)/qcp ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp) + @[ -f $(DESTDIR)$(bindir)/imv ] || (echo $(LN_S) icmd $(DESTDIR)$(bindir)/imv ; $(LN_S) icmd $(DESTDIR)$(bindir)/imv) +EOF |