aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorPaul Eggert2017-08-21 15:34:07 -0700
committerPaul Eggert2017-08-21 15:34:50 -0700
commit891bc9822bdd9893ddf2d4fd65fd53a5da001beb (patch)
tree32edbf675bde8ed4b92caf35f81fa477ad382e9e /make-dist
parent80fccd4290ae134bd1b3d377f134bb9143b68b43 (diff)
downloademacs-891bc9822bdd9893ddf2d4fd65fd53a5da001beb.tar.gz
emacs-891bc9822bdd9893ddf2d4fd65fd53a5da001beb.zip
Port /bin/sh scripts to Solaris 10
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.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist12
1 files changed, 6 insertions, 6 deletions
diff --git a/make-dist b/make-dist
index eb81a144ebf..b4667843ce4 100755
--- a/make-dist
+++ b/make-dist
@@ -240,7 +240,7 @@ if [ $check = yes ]; then
240 bogosities= 240 bogosities=
241 while read elc; do 241 while read elc; do
242 el=`echo $elc | sed 's/c$//'` 242 el=`echo $elc | sed 's/c$//'`
243 [ -e $el ] || continue 243 [ -r $el ] || continue
244 [ $elc -nt $el ] || bogosities="$bogosities $elc" 244 [ $elc -nt $el ] || bogosities="$bogosities $elc"
245 done < /tmp/elc 245 done < /tmp/elc
246 246
@@ -278,7 +278,7 @@ if [ $check = yes ]; then
278 info=`sed -n 's/^@setfilename //p' $texi | sed 's|.*info/||'` 278 info=`sed -n 's/^@setfilename //p' $texi | sed 's|.*info/||'`
279 [ x"${info}" != x"" ] || continue 279 [ x"${info}" != x"" ] || continue
280 info=info/$info 280 info=info/$info
281 [ -e $info ] || continue 281 [ -r $info ] || continue
282 [ $info -nt $texi ] || bogosities="$bogosities $info" 282 [ $info -nt $texi ] || bogosities="$bogosities $info"
283 done < /tmp/el 283 done < /tmp/el
284 284
@@ -292,7 +292,7 @@ if [ $check = yes ]; then
292 292
293 ## This exits with non-zero status if any .info files need 293 ## This exits with non-zero status if any .info files need
294 ## rebuilding. 294 ## rebuilding.
295 if [ -e Makefile ]; then 295 if [ -r Makefile ]; then
296 echo "Checking to see if info files are up-to-date..." 296 echo "Checking to see if info files are up-to-date..."
297 make --question info || error=yes 297 make --question info || error=yes
298 fi 298 fi
@@ -300,7 +300,7 @@ if [ $check = yes ]; then
300 ## Is this a release? 300 ## Is this a release?
301 case $version in 301 case $version in
302 [1-9][0-9].[0-9]) 302 [1-9][0-9].[0-9])
303 if [ -e ChangeLog ]; then 303 if [ -r ChangeLog ]; then
304 if ! grep -q "Version $version released" ChangeLog; then 304 if ! grep -q "Version $version released" ChangeLog; then
305 echo "No release notice in ChangeLog" 305 echo "No release notice in ChangeLog"
306 error=yes 306 error=yes
@@ -359,10 +359,10 @@ echo "Creating top directory: '${tempdir}'"
359mkdir ${tempdir} 359mkdir ${tempdir}
360 360
361if [ "$changelog" = yes ]; then 361if [ "$changelog" = yes ]; then
362 if test -e .git; then 362 if test -r .git; then
363 ## When making a release or pretest the ChangeLog should already 363 ## When making a release or pretest the ChangeLog should already
364 ## have been created and edited as needed. Don't ignore it. 364 ## have been created and edited as needed. Don't ignore it.
365 if test -e ChangeLog; then 365 if test -r ChangeLog; then
366 echo "Using existing top-level ChangeLog" 366 echo "Using existing top-level ChangeLog"
367 else 367 else
368 echo "Making top-level ChangeLog" 368 echo "Making top-level ChangeLog"