summaryrefslogtreecommitdiff
path: root/homebrew/colordiff/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/colordiff/patches.sh')
-rwxr-xr-xhomebrew/colordiff/patches.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/homebrew/colordiff/patches.sh b/homebrew/colordiff/patches.sh
new file mode 100755
index 000000000..f99e0b701
--- /dev/null
+++ b/homebrew/colordiff/patches.sh
@@ -0,0 +1,26 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/Makefile b/Makefile
+index 6ccbfc7..e5d64e7 100644
+--- a/Makefile
++++ b/Makefile
+@@ -28,8 +29,8 @@ install:
+ if [ ! -f ${DESTDIR}${INSTALL_DIR}/cdiff ] ; then \
+ install cdiff.sh ${DESTDIR}${INSTALL_DIR}/cdiff; \
+ fi
+- install -Dm 644 colordiff.1 ${DESTDIR}${MAN_DIR}/colordiff.1
+- install -Dm 644 cdiff.1 ${DESTDIR}${MAN_DIR}/cdiff.1
++ install -m 644 colordiff.1 ${DESTDIR}${MAN_DIR}/colordiff.1
++ install -m 644 cdiff.1 ${DESTDIR}${MAN_DIR}/cdiff.1
+ if [ -f ${DESTDIR}${ETC_DIR}/colordiffrc ]; then \
+ mv -f ${DESTDIR}${ETC_DIR}/colordiffrc \
+ ${DESTDIR}${ETC_DIR}/colordiffrc.old; \
+@@ -37,7 +38,6 @@ install:
+ install -d ${DESTDIR}${ETC_DIR}; \
+ fi
+ cp colordiffrc ${DESTDIR}${ETC_DIR}/colordiffrc
+- -chown root.root ${DESTDIR}${ETC_DIR}/colordiffrc
+ chmod 644 ${DESTDIR}${ETC_DIR}/colordiffrc
+
+ uninstall:
+EOF