Merge branch 'garden-shears'
[msysgit.git] / share / msysGit / make-manifests.sh
blob560044068dea108d3c7fdb129817f61a7fe3fac1
1 #!/bin/sh
3 # In its infinite wisdom, Microsoft decided that Vista should treat _all_
4 # programs whose filename _contains_ a substring like "setup", "install",
5 # "update", "patch" etc. as administrative programs.
7 # And now we have to say _explicitly_ that they are not. Great.
9 cd /
11 for program in $(ls bin/*.exe | grep -ie setup -e install -e update -e patch)
13 test -f $program.manifest || {
14 base=$(basename $program)
15 sed "s/patch.exe/$base/" \
16 < /bin/patch.exe.manifest > $program.manifest
17 git update-index --add $program.manifest
19 done