From: gobo72 Date: Sat, 10 Sep 2011 21:53:01 +0000 (+0000) Subject: Ajustement colordiffrc pour avoir des couleurs similaires à git diff X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=cab04e7efc03cdc233c0835c8686ac821e9cbb71;p=hvlinux.git Ajustement colordiffrc pour avoir des couleurs similaires à git diff --- diff --git a/stage3/pkg/colordiff b/stage3/pkg/colordiff index 7d3d10b..2c056fd 100644 --- a/stage3/pkg/colordiff +++ b/stage3/pkg/colordiff @@ -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 }