Installer: Clean up the Registry more thoroughly on uninstall
[msysgit.git] / src / tcltk / remove-devel-files.sh
blob0ef5593d4b6a1df31e98ea8be03a18014e527334
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 index=$(/share/msysGit/pre-install.sh)
7 cat fileList-*.txt |
8 grep -e '\.\(h\|a\|sh\)$' -e '/demos/' > remove.txt &&
9 if test -s remove.txt
10 then
11 # remove the files
12 (cd / && xargs git rm -r) < remove.txt &&
13 # update the file lists (for deinstallation/updating)
14 for f in fileList-*.txt
16 # comm -23 $f remove.txt (but comm is not there)
17 cat $f remove.txt remove.txt | sort | uniq -u > tmp.txt &&
18 mv tmp.txt $f &&
19 git add $f ||
20 break
21 done
22 fi &&
23 rm remove.txt ||
24 exit
26 /share/msysGit/post-install.sh $index 'Remove Tcl/Tk development files'