Browse code

Fix shocco errors

Clean up comments to fix errors seen while processing with shocco

Change-Id: I0e97ad27613313f03e47c107051ea93b115d4744

Dean Troyer authored on 2014/02/18 02:00:42
Showing 7 changed files
... ...
@@ -16,6 +16,7 @@
16 16
 # It also assumes default install location (/opt/stack/xxx)
17 17
 # to aid in debug, you should also verify that you've added
18 18
 # an output directory for screen logs:
19
+#
19 20
 #     SCREEN_LOGDIR=/opt/stack/screen-logs
20 21
 
21 22
 CERT_DIR=$(cd $(dirname "$0") && pwd)
... ...
@@ -2,10 +2,15 @@
2 2
 #
3 3
 # The following variables are assumed to be defined by certain functions:
4 4
 #
5
+# - ``DATABASE_BACKENDS``
5 6
 # - ``ENABLED_SERVICES``
6 7
 # - ``FILES``
7 8
 # - ``GLANCE_HOSTPORT``
9
+# - ``REQUIREMENTS_DIR``
10
+# - ``STACK_USER``
8 11
 # - ``TRACK_DEPENDS``
12
+# - ``UNDO_REQUIREMENTS``
13
+#
9 14
 
10 15
 # Include the common functions
11 16
 FUNC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
... ...
@@ -45,7 +50,7 @@ function cleanup_tmp {
45 45
 # Updates the dependencies in project_dir from the
46 46
 # openstack/requirements global list before installing anything.
47 47
 #
48
-# Uses globals ``TRACK_DEPENDS``, ``REQUIREMENTS_DIR``
48
+# Uses globals ``TRACK_DEPENDS``, ``REQUIREMENTS_DIR``, ``UNDO_REQUIREMENTS``
49 49
 # setup_develop directory
50 50
 function setup_develop() {
51 51
     local project_dir=$1
... ...
@@ -4,8 +4,8 @@
4 4
 # Dependencies:
5 5
 #
6 6
 # - ``functions`` file
7
-# -``STACK_USER`` must be defined
8
-
7
+# - ``STACK_USER`` must be defined
8
+#
9 9
 # lib/apache exports the following functions:
10 10
 #
11 11
 # - is_apache_enabled_service
... ...
@@ -2,7 +2,8 @@
2 2
 # Install and start **Marconi** service
3 3
 
4 4
 # To enable a minimal set of Marconi services, add the following to localrc:
5
-#   enable_service marconi-server
5
+#
6
+#     enable_service marconi-server
6 7
 #
7 8
 # Dependencies:
8 9
 # - functions
... ...
@@ -6,8 +6,9 @@
6 6
 # This is appropriate for python libraries that release to pypi and are
7 7
 # expected to be used beyond OpenStack like, but are requirements
8 8
 # for core services in global-requirements.
9
-#    * wsme
10
-#    * pecan
9
+#
10
+#     * wsme
11
+#     * pecan
11 12
 #
12 13
 # This is not appropriate for stackforge projects which are early stage
13 14
 # OpenStack tools
... ...
@@ -54,9 +54,7 @@ $0 -P -C mytenant -u myuser -p mypass
54 54
 EOF
55 55
 }
56 56
 
57
-if ! options=$(getopt -o hPAp:u:r:C: -l os-username:,os-password:,os-tenant-name:,os-tenant-id:,os-auth-url:,target-dir:,skip-tenant:,os-cacert:,help,debug -- "$@")
58
-then
59
-    #parse error
57
+if ! options=$(getopt -o hPAp:u:r:C: -l os-username:,os-password:,os-tenant-name:,os-tenant-id:,os-auth-url:,target-dir:,skip-tenant:,os-cacert:,help,debug -- "$@"); then
60 58
     display_help
61 59
     exit 1
62 60
 fi
... ...
@@ -70,7 +70,8 @@ if [[ -d $dir ]]; then
70 70
 fi
71 71
 
72 72
 # Ubuntu 12.04
73
-# -----
73
+# ------------
74
+
74 75
 # We can regularly get kernel crashes on the 12.04 default kernel, so attempt
75 76
 # to install a new kernel
76 77
 if [[ ${DISTRO} =~ (precise) ]]; then