14/07/2017 20:43, Wiles, Keith: > > On Jul 14, 2017, at 1:39 PM, Wiles, Keith <keith.wi...@intel.com> wrote: > >> On Jul 14, 2017, at 12:07 PM, Thomas Monjalon <tho...@monjalon.net> wrote: > >> +cd $(dirname $(readlink -m $0))/.. > > > > I tried the script it works, but I am concerned about the ‘cd’ above as it > > does all of the the repo. I would like to see it do just the directory and > > sub-directories if a path is given. If I am testing a specific PMD or > > library then I would not want to do all of the repo. > > > > I was thinking about something like the following: > > if [ "$1x" = "x" ]; then > cd $(dirname $(readlink -m $0))/.. > fi
Yes we can add a parameter to the script. The parameter would be the path to check, and the default value is the whole repo. So the script could be used also for another repo - like pktgen ;) I'll send a v2