Its /bin/sh builtin ‘test’ command does not support -e.
* autogen.sh, build-aux/git-hooks/pre-commit:
* build-aux/gitlog-to-emacslog, make-dist:
Use test -r, not test -e.
do_check=false;;
all)
do_autoconf=true
- test -e .git && do_git=true;;
+ test -r .git && do_git=true;;
autoconf)
do_autoconf=true;;
git)
case $do_autoconf,$do_git in
false,false)
do_autoconf=true
- test -e .git && do_git=true;;
+ test -r .git && do_git=true;;
esac
# Generate Autoconf-related files, if requested.
# Get location of Git's common configuration directory. For older Git
# versions this is just '.git'. Newer Git versions support worktrees.
-{ test -e .git &&
+{ test -r .git &&
git_common_dir=`git rev-parse --no-flags --git-common-dir 2>/dev/null` &&
test -n "$git_common_dir"
} || git_common_dir=.git
if test ! -f configure; then
echo "You can now run '$0 autoconf'."
-elif test -e .git && test $git_was_ok = false && test $do_git = false; then
+elif test -r .git && test $git_was_ok = false && test $do_git = false; then
echo "You can now run '$0 git'."
elif test ! -f config.status ||
test -n "`find configure src/config.in -newer config.status`"; then
# When doing a two-way merge, ignore problems that came from the other
# side of the merge.
head=HEAD
-if test -e "$GIT_DIR"/MERGE_HEAD; then
+if test -r "$GIT_DIR"/MERGE_HEAD; then
merge_heads=`cat "$GIT_DIR"/MERGE_HEAD` || exit
for merge_head in $merge_heads; do
case $head in
fi
# If this is not a Git repository, just generate an empty ChangeLog.
-test -e .git || {
+test -r .git || {
>"$output"
exit
}
--ignore-line='^; ' --format='%B' \
"$gen_origin..$new_origin" >"ChangeLog.tmp" || exit
-if test -e "ChangeLog.tmp"; then
+if test -r "ChangeLog.tmp"; then
# Fix up bug references.
# This would be better as eg a --transform option to gitlog-to-changelog,
bogosities=
while read elc; do
el=`echo $elc | sed 's/c$//'`
- [ -e $el ] || continue
+ [ -r $el ] || continue
[ $elc -nt $el ] || bogosities="$bogosities $elc"
done < /tmp/elc
info=`sed -n 's/^@setfilename //p' $texi | sed 's|.*info/||'`
[ x"${info}" != x"" ] || continue
info=info/$info
- [ -e $info ] || continue
+ [ -r $info ] || continue
[ $info -nt $texi ] || bogosities="$bogosities $info"
done < /tmp/el
## This exits with non-zero status if any .info files need
## rebuilding.
- if [ -e Makefile ]; then
+ if [ -r Makefile ]; then
echo "Checking to see if info files are up-to-date..."
make --question info || error=yes
fi
## Is this a release?
case $version in
[1-9][0-9].[0-9])
- if [ -e ChangeLog ]; then
+ if [ -r ChangeLog ]; then
if ! grep -q "Version $version released" ChangeLog; then
echo "No release notice in ChangeLog"
error=yes
mkdir ${tempdir}
if [ "$changelog" = yes ]; then
- if test -e .git; then
+ if test -r .git; then
## When making a release or pretest the ChangeLog should already
## have been created and edited as needed. Don't ignore it.
- if test -e ChangeLog; then
+ if test -r ChangeLog; then
echo "Using existing top-level ChangeLog"
else
echo "Making top-level ChangeLog"