2 # indent all am-utils files
3 if [ ! -f amd
/amd.c
]; then
4 # maybe we are in a subdir
8 if [ ! -f amd
/amd.c
]; then
9 echo "please run $0 from the top level of the am-utils source tree"
19 #files="conf/*/*.[hc]"
20 files
="specify_the_file.c"
168 -T amq_mount_info_list
171 -T amq_mount_tree_list
269 if [ $# -lt 1 ]; then
270 echo "Usage: $0 <-g|-s> [files...]"
273 if [ $1 = "-g" -o "$1" = "-s" ]; then
277 echo "Usage: $0 <-g|-s> [files...]"
280 # check if specified files to process
281 if [ $# -gt 0 ]; then
285 for i
in ${files}; do
287 echo "No such file: $i"
294 icmd
="/usr/local/gnu/bin/indent"
295 cmd
="${icmd} $i -o $i$prefix $gnuopts"
296 showcmd
="${icmd} $i -o $i$prefix"
301 icmd
="/opt/SUNWspro/bin/indent"
302 cmd
="${icmd} $i $i$prefix $sunopts"
303 showcmd
="${icmd} $i $i$prefix"
307 echo "Usage: $0 <-g|-s>"
319 # remove trailing spaces