Magellan Linux

Diff of /branches/R11-stable/include/cleanutils.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/magellan-next/include/cleanutils.sminc revision 6654 by niro, Tue Sep 14 16:46:32 2010 UTC branches/R11-stable/include/cleanutils.sminc revision 14080 by niro, Wed Nov 21 09:35:49 2012 UTC
# Line 16  zapmost() Line 16  zapmost()
16   local rootdir   local rootdir
17   rootdir="${1}/"   rootdir="${1}/"
18   [ ! -e  "$rootdir" ] && echo "zapmost: $rootdir not found; skipping..." && return 1   [ ! -e  "$rootdir" ] && echo "zapmost: $rootdir not found; skipping..." && return 1
19     echo -e "${COLBLUE}*** ${COLGREEN}Running zapmost for ${rootdir}${COLDEFAULT}"
20   install -d ${BUILDDIR}/zap   install -d ${BUILDDIR}/zap
21   local dirs   local dirs
22   shift   shift
# Line 35  zapmost() Line 36  zapmost()
36   done   done
37   rm -rf ${rootdir}*   rm -rf ${rootdir}*
38   mv ${BUILDDIR}/zap/* ${rootdir}   mv ${BUILDDIR}/zap/* ${rootdir}
39     echo -e "${COLBLUE}=== ${COLGREEN}zapmost done for ${rootdir}${COLDEFAULT}"
40  }  }

Legend:
Removed from v.6654  
changed lines
  Added in v.14080