This removes the fs-based git code path for detecting devstack plugins
as requested in I2c5c9282a8ad80014cad171a4dfbdc8f26044cd1
Change-Id: I6d1567c2545b866c433381d19587beb08c281c53
| ... | ... |
@@ -43,38 +43,14 @@ declare -A plugins |
| 43 | 43 |
|
| 44 | 44 |
test -r data/devstack-plugins-registry.header && cat data/devstack-plugins-registry.header |
| 45 | 45 |
|
| 46 |
-if test -n "$git_dir"; then |
|
| 47 |
- pushd ${git_dir} >/dev/null
|
|
| 48 |
- for i in *; do |
|
| 49 |
- pushd ${i} >/dev/null
|
|
| 50 |
- if output="$(git log --diff-filter=A --format='%cd' --date=short -1 -- devstack/plugin.sh)"; then |
|
| 51 |
- test -n "$output" && plugins[$i]=${output}
|
|
| 52 |
- fi |
|
| 53 |
- popd >/dev/null |
|
| 54 |
- done |
|
| 55 |
- popd >/dev/null |
|
| 56 |
- |
|
| 57 |
- sorted_plugins=( $(for k in "${!plugins[@]}"; do echo "$k"; done | sort))
|
|
| 58 |
- |
|
| 59 |
- for k in "${sorted_plugins[@]}"; do
|
|
| 60 |
- project=${k:0:18}
|
|
| 61 |
- giturl="git://git.openstack.org/openstack/${k:0:26}"
|
|
| 62 |
- pdate="${plugins[$k]}"
|
|
| 63 |
- printf "|%-18s|%-60s (%-10s)|\n" "${project}" "${giturl}" "${pdate}"
|
|
| 64 |
- printf "+------------------+-------------------------------------------------------------------------+\n" |
|
| 65 |
- done |
|
| 66 |
- |
|
| 67 |
-else |
|
| 68 |
- sorted_plugins=$(python tools/generate-devstack-plugins-list.py) |
|
| 69 |
- |
|
| 70 |
- for k in ${sorted_plugins}; do
|
|
| 71 |
- project=${k:0:18}
|
|
| 72 |
- giturl="git://git.openstack.org/openstack/${k:0:26}"
|
|
| 73 |
- printf "|%-18s|%-73s|\n" "${project}" "${giturl}"
|
|
| 74 |
- printf "+------------------+-------------------------------------------------------------------------+\n" |
|
| 75 |
- done |
|
| 76 |
- |
|
| 77 |
-fi |
|
| 46 |
+sorted_plugins=$(python tools/generate-devstack-plugins-list.py) |
|
| 47 |
+ |
|
| 48 |
+for k in ${sorted_plugins}; do
|
|
| 49 |
+ project=${k:0:18}
|
|
| 50 |
+ giturl="git://git.openstack.org/openstack/${k:0:26}"
|
|
| 51 |
+ printf "|%-18s|%-73s|\n" "${project}" "${giturl}"
|
|
| 52 |
+ printf "+------------------+-------------------------------------------------------------------------+\n" |
|
| 53 |
+done |
|
| 78 | 54 |
|
| 79 | 55 |
test -r data/devstack-plugins-registry.footer && cat data/devstack-plugins-registry.footer |
| 80 | 56 |
) > doc/source/plugin-registry.rst |