Skip to content

Commit

Permalink
Merge from FreeBSD:
Browse files Browse the repository at this point in the history
revision 1.7
  date: 2004-07-07 09:38:14 +0000;  author: ru;  state: Exp;  lines: +1 -0
  Arguments to options aren't necessarily separated with whitespace.

  Noticed by:	harti

revision 1.6
  date: 2004-02-06 11:00:13 +0000;  author: ru;  state: Exp;  lines: +3 -4
  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.
  • Loading branch information
YONETANI Tomokazu committed Apr 9, 2005
1 parent afc5c39 commit c39f2ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/install.sh
Expand Up @@ -26,15 +26,15 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# $FreeBSD: src/tools/install.sh,v 1.5 2002/06/02 20:05:56 schweikh Exp $
# $DragonFly: src/tools/install.sh,v 1.3 2005/04/09 10:39:12 y0netan1 Exp $
# $FreeBSD: src/tools/install.sh,v 1.7 2004/07/07 09:38:14 ru Exp $
# $DragonFly: src/tools/install.sh,v 1.4 2005/04/09 11:02:35 y0netan1 Exp $

# 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;;
-[Bfgmo]*) shift;;
*) break;
esac
done
Expand Down

0 comments on commit c39f2ad

Please sign in to comment.