diff options
author | Steve Price <steve@FreeBSD.org> | 1999-07-04 21:09:42 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-07-04 21:09:42 +0000 |
commit | 39f9acf01c494654cc78e7c6b5e6783bb16c91f5 (patch) | |
tree | 2664fb39ef64a671b3721ffee34a1ae35d354283 /japanese | |
parent | Don't require interaction on INSTALL while PACKAGE_BUILDING. (diff) |
Don't require interaction while PACKAGE_BUILDING.
Notes
Notes:
svn path=/head/; revision=20023
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/ptex-base/pkg-req | 6 | ||||
-rw-r--r-- | japanese/ptex-common/pkg-req | 6 |
2 files changed, 10 insertions, 2 deletions
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 |