Ajustement colordiffrc pour avoir des couleurs similaires à git diff
[hvlinux.git] / stage3 / pkg / colordiff
index 7d3d10b..2c056fd 100644 (file)
@@ -3,4 +3,10 @@
 hvbuild()
 {
     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
 }