changes.sh revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
########################################################################
# #
# This software is part of the ast package #
# Copyright (c) 1990-2011 AT&T Intellectual Property #
# and is licensed under the #
# Eclipse Public License, Version 1.0 #
# by AT&T Intellectual Property #
# #
# A copy of the License is available at #
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
# #
# Information and Software Systems Research #
# AT&T Research #
# Florham Park NJ #
# #
# Glenn Fowler <gsf@research.att.com> #
# #
########################################################################
command=changes
USAGE=$'
[-?
@(#)$Id: changes (AT&T Research) 2010-01-20 $
]
[+NAME?changes - list changed $PACKAGEROOT package source files]
[+DESCRIPTION?\bchanges\b lists $PACKAGEROOT relative package source
files that changed between \afrom-date\a between \ato-date\a. The
default \afrom-date\a is the modify time of \b$PACKAGEROOT/README\b.
The default \ato-date\a is \bnow\b. The changed files are listed by
\bls\b(1) with the optional \bls-option\b operands.]
[p:package?List source files for \apackage\a only. Multiple
\b--package\b options may be specified. By default source files for all
packages in \b$PACKAGEROOT/lib/package\b are checked.]:[package]
[ from-date [ to-date ] ] [ -- ls-option ... ]
[+SEE ALSO?\btw\b(1), \bls\b(1)]
'
;;
*) ARGV0=""
USAGE=" table ..."
;;
esac
usage()
{
OPTIND=0
exit 2
}
p) if [[ $packages ]]
fi
;;
*) usage
;;
esac
done
shift $OPTIND-1
if [[ ! $PACKAGEROOT ]]
exit 1
fi
cd $PACKAGEROOT || exit
if [[ $packages ]]
else packages='*'
fi
if [[ ! $1 || $1 == -* ]]
then if [[ ! -f README ]]
exit 1
fi
else from=$1
shift
fi
if [[ $1 && $1 != -* ]]
then to=" && mtime <= '$1'"
shift
else to=
fi
ls_options=$*
if [[ ! -f $1 ]]
exit 1
fi
packages=$*
sep=
for pkg
do while read line
then set -- $line
do shift
done
if (( $# ))
then shift
for p
do p=${p#'$(PACKAGEROOT)/'}
if [[ $p != *'$('* ]]
sep=' '
fi
done
break
fi
fi
done < $pkg
done
if [[ ! $components ]]
exit 1
fi