Permalink
Browse files

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 <johannes.schindelin@gmx.de>
  • Loading branch information...
1 parent 68ad0df commit fade9ba0701f97514344e904251ba3268b495bd3 @dscho dscho committed Mar 26, 2009
Showing with 26 additions and 0 deletions.
  1. +26 −0 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'

0 comments on commit fade9ba

Please sign in to comment.