Uninstall script generation loops

Bug #420529 reported by Yann Kaiser on 2009-08-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Armagetron Advanced

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

from batch/make/uninstall

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

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  Edit
Everyone can see this information.

Other bug subscribers