Script to guess Red Hat machine's build date.
[profile.git] / opt / p4 / common
1 #!/bin/false
2 #
3 # common: Find arguments for a custom Perforce command.
4 # Usage: . ${0%/*}/common
5 # Notes: p4 options are stored in $p4opts.
6 #        Command name is stored in $p4command.
7 #        Command arguments are available in regular positional parameters.
8 p4command=${0##*p4-}
9
10 p4opts=
11 while [ ! "$1" = "$p4command" ]; do
12   p4opts="$p4opts $1"
13   shift
14 done
15 shift