From fade9ba0701f97514344e904251ba3268b495bd3 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 26 Mar 2009 16:01:04 +0100 Subject: [PATCH] Add a script to clean up after Tcl/Tk installation When installing Tcl/Tk, all kinds of development files are installed, too. As we do not want to link to Tcl/Tk, we do not need them (and we certainly do not want to ship them with the Git installer), so let's just get rid of them. Signed-off-by: Johannes Schindelin --- src/tcltk/remove-devel-files.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/tcltk/remove-devel-files.sh diff --git a/src/tcltk/remove-devel-files.sh b/src/tcltk/remove-devel-files.sh new file mode 100644 index 0000000000..499c94a199 --- /dev/null +++ b/src/tcltk/remove-devel-files.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +cd "$(dirname "$0")" + +index=$(/share/msysGit/pre-install.sh) + +cat fileList-*.txt | +grep -e '\.\(h\|a\|sh\)$' -e '/demos/' > remove.txt && +if test -s remove.txt +then + # remove the files + (cd / && xargs git rm -r) < remove.txt && + # update the file lists (for deinstallation/updating) + for f in fileList-*.txt + do + # comm -23 $f remove.txt (but comm is not there) + cat $f remove.txt remove.txt | sort | uniq -u > tmp.txt && + mv tmp.txt $f && + git add $f || + break + done +fi && +rm remove.txt || +exit + +/share/msysGit/post-install.sh $index 'Remove Tcl/Tk development files' -- 2.11.4.GIT