Sergey Lukjanov
600e4271dd
Fix/improve projects_yaml_alphabetized script
* use 'if ! command; then' condition to check diff
* previously "diff projects_list projects_list.sorted > projects_list.diff"
command returns exit code 1 and due to the 'bash -xe' it fails execution
* make sort case insensitive
Now this script prints something like:
+ sed -e '/^- project: /!d' -e 's/^- project: //'
modules/openstack_project/templates/review.projects.yaml.erb
+ LC_ALL=C
+ sort projects_list -o projects_list.sorted
+ diff projects_list projects_list.sorted
+ echo 'The following projects should be alphabetized: '
The following projects should be alphabetized:
+ cat projects_list.diff
+ grep -e '> '
> openstack/openstack-doc-tools
> stackforge/cliff
> stackforge/entropy
> stackforge/fuel-devops
> stackforge/MRaaS
> stackforge/puppet_openstack_builder
> stackforge/stevedore
> stackforge/tooz
+ exit 1
Change-Id: Ib6160dc401a70ada16fa961ae8d941b3e8845d4b
2013-12-20 12:39:18 +04:00
..
2013-12-05 18:38:04 +00:00
2013-09-06 13:29:04 -07:00
2013-10-25 11:18:22 -07:00
2012-11-23 21:41:37 +00:00
2013-09-23 21:43:14 +00:00
2013-12-12 19:30:47 +00:00
2013-10-21 18:48:29 -07:00
2013-10-18 17:16:45 -07:00
2013-10-12 17:10:03 +00:00
2013-12-15 17:54:32 +00:00
2013-12-16 20:55:41 +00:00
2012-12-01 00:58:52 +00:00
2013-12-03 23:37:39 +00:00
2013-04-25 21:37:00 +00:00
2013-11-08 11:01:53 +13:00
2013-12-20 12:39:18 +04:00
2013-12-06 15:17:28 -05:00
2013-08-19 10:19:47 -07:00
2013-12-18 00:40:49 +00:00
2012-11-26 20:55:57 +00:00
2013-10-21 10:17:48 -07:00
2013-05-06 18:13:53 +00:00
2013-05-01 17:49:12 +00:00
2013-12-11 11:50:42 -08:00
2013-10-09 16:53:06 -07:00
2013-10-27 18:38:38 -04:00
2012-11-12 18:58:07 +00:00
2013-12-20 02:44:39 +00:00
2013-05-17 17:21:21 +00:00
2013-12-18 20:03:39 +00:00
2013-05-20 20:40:03 +00:00
2013-06-26 13:57:41 +00:00
2013-09-20 14:22:09 -07:00
2013-12-03 17:34:02 -03:00
2013-12-02 14:50:09 +01:00
2012-11-23 21:41:37 +00:00
2013-05-14 02:02:12 +00:00
2013-10-01 19:03:11 +00:00
2013-04-25 21:37:03 +00:00
2013-04-25 21:37:03 +00:00
2013-05-26 02:57:11 +00:00
2013-12-11 11:50:42 -08:00
2012-10-05 19:47:44 +00:00
2012-11-26 20:55:57 +00:00
2012-11-23 21:41:37 +00:00
2013-04-25 21:37:00 +00:00
2013-09-12 17:12:18 +00:00
2012-11-10 23:50:17 +00:00
2013-12-04 10:12:29 -08:00