> On April 7, 2016, 10:13 p.m., Vinod Kone wrote: > > support/docker_build.sh, line 16 > > <https://reviews.apache.org/r/45668/diff/2/?file=1328041#file1328041line16> > > > > the previous version was working fine on ubuntu and centos. why the > > change? > > Juan Larriba wrote: > It is not working for me on Ubuntu:14.04 and Ubuntu:15.10: > > [root@jlarriba ~]# dirname "$0" > dirname: invalid option -- 'b' > Try 'dirname --help' for more information. > > [root@jlarriba ~]# dirname -- "$0" > .
$0 is a bash variable that corresponds to the path of the bash script itself. When `dirname $0` is executed in the script, $0 is the path of the docker_build.sh script. ``` vagrant@vagrant-ubuntu-trusty-64:~$ dirname /foo/bar /foo vagrant@vagrant-ubuntu-trusty-64:~$ dirname abc . ``` - Vinod ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/45668/#review127677 ----------------------------------------------------------- On April 6, 2016, 3:49 p.m., Juan Larriba wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/45668/ > ----------------------------------------------------------- > > (Updated April 6, 2016, 3:49 p.m.) > > > Review request for mesos, Alex Clemmer, Joerg Schad, and Vinod Kone. > > > Repository: mesos > > > Description > ------- > > Enable CMake build for Linux as new CONFIGURATOR option. > > > Diffs > ----- > > support/docker_build.sh e9b1d7219b261475fb29118ee27d11743c2c5e0d > > Diff: https://reviews.apache.org/r/45668/diff/ > > > Testing > ------- > > Built using docker_build.sh on both centos:7 and ubuntu:14.04 using both > cmake and autotools. In ubuntu:14.04 was built using gcc and clang, in > centos:7 only gcc. > > > Thanks, > > Juan Larriba > >