--- /dev/null
+# Example colordiffrc file for dark backgrounds
+#
+# Set banner=no to suppress authorship info at top of
+# colordiff output
+banner=no
+# By default, when colordiff output is being redirected
+# to a file, it detects this and does not colour-highlight
+# To make the patch file *include* colours, change the option
+# below to 'yes'
+color_patches=no
+#
+# available colours are: white, yellow, green, blue,
+# cyan, red, magenta, black,
+# darkwhite, darkyellow, darkgreen,
+# darkblue, darkcyan, darkred,
+# darkmagenta, darkblack
+#
+# Can also specify 'none', 'normal' or 'off' which are all
+# aliases for the same thing, namely "don't colour highlight
+# this, use the default output colour"
+#
+plain=off
+newtext=darkgreen
+oldtext=darkred
+diffstuff=white
+cvsstuff=darkyellow
{
PREFIX=/usr make -C ${LFS_TMP}/${PACKAGE} install
- # Replace colordiff default values to match git-diff:
- sed -e "s!\(newtext=\).*!\1darkgreen!" -i /etc/colordiffrc
- sed -e "s!\(oldtext=\).*!\1darkred!" -i /etc/colordiffrc
- sed -e "s!\(diffstuff=\).*!\1white!" -i /etc/colordiffrc
- sed -e "s!\(cvsstuff=\).*!\1darkyellow!" -i /etc/colordiffrc
+ install -v -m644 ${SCRDIR}/misc/colordiffrc /etc
}
+