From 39f9acf01c494654cc78e7c6b5e6783bb16c91f5 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 4 Jul 1999 21:09:42 +0000 Subject: Don't require interaction while PACKAGE_BUILDING. --- japanese/ptex-base/pkg-req | 6 +++++- japanese/ptex-common/pkg-req | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'japanese') diff --git a/japanese/ptex-base/pkg-req b/japanese/ptex-base/pkg-req index a9a628f3c815..f353fb4258a1 100644 --- a/japanese/ptex-base/pkg-req +++ b/japanese/ptex-base/pkg-req @@ -22,7 +22,11 @@ echo if [ "x$3" != "xBATCH" ]; then echo 'If you proceed, these files will be renamed to *.old and new files' echo 'will be installed.' - read -p 'Would you like to proceed? (y/N)> ' ans + if [ -z "${PACKAGE_BUILDING}" ]; then + read -p 'Would you like to proceed? (y/N)> ' ans + else + ans=yes + fi case x$ans in xy*|xY*) for f in ${files_exist} ;do mv -f $f ${f}.old; done; exit 0 esac diff --git a/japanese/ptex-common/pkg-req b/japanese/ptex-common/pkg-req index a9a628f3c815..f353fb4258a1 100644 --- a/japanese/ptex-common/pkg-req +++ b/japanese/ptex-common/pkg-req @@ -22,7 +22,11 @@ echo if [ "x$3" != "xBATCH" ]; then echo 'If you proceed, these files will be renamed to *.old and new files' echo 'will be installed.' - read -p 'Would you like to proceed? (y/N)> ' ans + if [ -z "${PACKAGE_BUILDING}" ]; then + read -p 'Would you like to proceed? (y/N)> ' ans + else + ans=yes + fi case x$ans in xy*|xY*) for f in ${files_exist} ;do mv -f $f ${f}.old; done; exit 0 esac -- cgit v1.2.3