Ajustement colordiffrc pour avoir des couleurs similaires à git diff
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 10 Sep 2011 21:53:01 +0000 (21:53 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 10 Sep 2011 21:53:01 +0000 (21:53 +0000)
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
 }