aboutsummaryrefslogtreecommitdiff
path: root/tools/install.sh
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-02-06 11:00:13 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-02-06 11:00:13 +0000
commit285c79350176c2c239dd53ab24a27e6fae4ba822 (patch)
tree17d010b9efad2e065875c39ab0f2125f606a1a8d /tools/install.sh
parent3d99503552d27c52953f5b3d031579e34619afc7 (diff)
downloadsrc-285c79350176c2c239dd53ab24a27e6fae4ba822.tar.gz
src-285c79350176c2c239dd53ab24a27e6fae4ba822.zip
From what I can tell, install.sh supported all of the install(1)
options since revision 1.2, so removed the XXX comment now. Fixed bogus test(1) expression that would be evaluated as a null string test if script is run without arguments, compacted option lists.
Notes
Notes: svn path=/head/; revision=125514
Diffstat (limited to 'tools/install.sh')
-rw-r--r--tools/install.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/install.sh b/tools/install.sh
index c578ddaadb96..899d7e21d48a 100644
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -29,11 +29,10 @@
# $FreeBSD$
# parse install's options and ignore them completely.
-# XXX - not all options are recognised.
-while [ ! -z $1 ]; do
+while [ $# -gt 0 ]; do
case $1 in
- -b | -C | -c | -M | -p | -S | -s) shift;;
- -B | -f | -g | -m | -o) shift; shift;;
+ -[bCcMpSs]) shift;;
+ -[Bfgmo]) shift; shift;;
*) break;
esac
done