Uninstall script generation loops
Bug #420529 reported by
Yann Kaiser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Armagetron Advanced |
New
|
Undecided
|
Unassigned |
Bug Description
Loops in
while test -s ${UNINSTALL}.dir0; do
sed -e "s,/[^/]*\$,," < ${UNINSTALL}.dir0 | grep ${PROGNAME} > ${UNINSTALL}.dir1
cat ${UNINSTALL}.dir1 >> ${UNINSTALL}.dir
mv ${UNINSTALL}.dir1 ${UNINSTALL}.dir0
done
from batch/make/
...which I can't make sense of.
To post a comment you must log in.
Ah. That one is from the bit where all directories to be rmdir'd on uninstall are generated. At the beginning, ${UNINSTALL}.dir0 contains the basic directories; the loop generates the parent directories of them and only keeps those that still have 'armagetronad' in their name. It adds the parent directories to the list of directories (${UNINSTALL}.dir) and repeats until no more relevant parent directories can be found.