releng: Add script to generate list of plugins for API baseline
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 21 Sep 2016 20:04:21 +0000 (16:04 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 13 Oct 2016 14:43:09 +0000 (10:43 -0400)
Add a script to make it easier to list plugins that need to go
in the API baseline. This was meant to be in the commit that adds
the new 2.1.0 API baseline but it was forgotten.

Change-Id: Ic6daa6086dcbe3a7ad12627cdff43038765263d6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/81879
Reviewed-by: Hudson CI
releng/scripts/generate_api_baseline_unit_ids.sh [new file with mode: 0755]

diff --git a/releng/scripts/generate_api_baseline_unit_ids.sh b/releng/scripts/generate_api_baseline_unit_ids.sh
new file mode 100755 (executable)
index 0000000..b04ab1d
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+# Generates a list of plugins suitable to be put in the API baseline. It skips test plugins, rcp and doc.
+
+find ../.. -name "MANIFEST.MF" | grep -v -E 'doc|rcp|tests' | cut -c 3- | xargs -n1 dirname | xargs -n1 dirname  | sed -rn s/.*\\/\(.*\)/\\1/p | sort | xargs -n1 -I {} echo '<unit id="{}" version="0.0.0"/>'
+
This page took 0.026054 seconds and 5 git commands to generate.