Uninstall script generation loops

Bug #420529 reported by Yann Kaiser
6
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/uninstall

...which I can't make sense of.

Revision history for this message
Manuel Moos (z-man) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.