1 |
# package clean utilities |
# package clean utilities |
2 |
# $Header: /magellan-cvs/smage/include/cleanutils.sminc,v 1.1 2005/08/07 17:22:43 niro Exp $ |
# $Id$ |
3 |
|
|
4 |
# |
# |
5 |
# taken from gentoo (livecd-ng) |
# taken from gentoo (livecd-ng) |
11 |
#example calls: |
#example calls: |
12 |
#zapmost /usr/share/locales en_us |
#zapmost /usr/share/locales en_us |
13 |
#zapmost /usr/share/terminfo l/linux |
#zapmost /usr/share/terminfo l/linux |
14 |
zapmost() { |
zapmost() |
15 |
|
{ |
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 |