blob: 560044068dea108d3c7fdb129817f61a7fe3fac1 [file] [log] [blame]
#!/bin/sh
# In its infinite wisdom, Microsoft decided that Vista should treat _all_
# programs whose filename _contains_ a substring like "setup", "install",
# "update", "patch" etc. as administrative programs.
#
# And now we have to say _explicitly_ that they are not. Great.
cd /
for program in $(ls bin/*.exe | grep -ie setup -e install -e update -e patch)
do
test -f $program.manifest || {
base=$(basename $program)
sed "s/patch.exe/$base/" \
< /bin/patch.exe.manifest > $program.manifest
git update-index --add $program.manifest
}
done