]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
misc-sanity-checks.sh: Some cleanups
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 24 Dec 2014 08:21:35 +0000 (17:21 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 14 Jan 2015 03:52:06 +0000 (12:52 +0900)
commita640318bda7e94278434bafba75d39052ef217ab
treea52f4f3829c2735f92d64c263cbdf3953c5a8883
parent2c94b10d741f3a9d96b548cc051850467468c8de
misc-sanity-checks.sh: Some cleanups

Some cleanups for commit 4fdda65a5b9f379af997e1e971865ccfa7a93156.

- Don't assume the path of mktemp command.  It's /usr/bin/mktemp
  for some platforms. eg. NetBSD.  Also, always provide a template
  as it's necessary for some platforms, eg. OS X.  This snippet was
  taken from the example in NetBSD's mktemp(1).
- Move a comment to the appropriate place.
- Improve a regex to ignore more comments.
- As the pattern for find -path is not a regex, no escape is necessary
  for period.

Closes-Bug: #1405584
Change-Id: Ia8358f0f7ebe9bc445ce5aa3c4f340546f37db05
tools/misc-sanity-checks.sh