#!/bin/sh
 
. "$MAINTENANCE_DIR_ROOT/core/bin/perform"

APPLICATION="descend"

if [ $# -lt 1 ]
then
	echo "Usage: $APPLICATION <action> [<parameters>]"
	exit 1
fi

ACTION=$1
shift;PARAMETERS=$@
CURDIR=`pwd`

for d in `ls`
do
	if [ -d $d ]
	then
		perform "cd $d"
		perform "$ACTION $PARAMETERS"
		perform "cd $CURDIR"
	fi
done
