-
Notifications
You must be signed in to change notification settings - Fork 22
/
generateReleaseMd.sh
executable file
·24 lines (24 loc) · 1.09 KB
/
generateReleaseMd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
#
# 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
#
echo "# 3rd party dependencies for Release X.X.X"
echo ""
echo "## Eclipse CQs - Provided/compile"
echo ""
echo "| Group ID | Artifact ID | Version | CQ |"
echo "|---|---|---|---|---|"
cat compile.txt provided.txt|cut -d':' -f1,2,4|while read x; do grep "`echo $x|cut -d':' -f1`\s*|\s*`echo $x|cut -d':' -f2`" ../../hawkbit/.3rd-party/Release*.md -q || echo $x | sed -e 's/:/|/g' |while read i; do echo "|$i| []() |";done;done
echo ""
echo "## Test and build dependencies"
echo ""
echo "CQ: "
echo ""
echo "| Group ID | Artifact ID | Version |"
echo "|---|---|---|"
cut -d':' -f1,2,4 test.txt|while read x; do grep "`echo $x|cut -d':' -f1`\s*|\s*`echo $x|cut -d':' -f2`" ../../hawkbit/.3rd-party/Release*.md -q || echo $x | sed -e 's/:/|/g' |while read i; do echo "|$i|";done;done