2016-11-17 20:07:23 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# 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
|
|
|
|
|
#
|
2016-01-21 13:18:55 +01:00
|
|
|
cd ..
|
2017-03-30 08:46:31 +02:00
|
|
|
mvn dependency:list -DexcludeGroupIds=org.eclipse -Dsort=true -DoutputFile=dependencies.txt
|
2016-01-21 13:18:55 +01:00
|
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:compile'|sort|uniq > 3rd-dependencies/compile.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:test'|sort|uniq > 3rd-dependencies/test.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:provided'|sort|uniq > 3rd-dependencies/provided.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do rm $i;done
|
|
|
|
|
cd 3rd-dependencies/
|
2016-03-08 12:41:13 +01:00
|
|
|
cat compile.txt provided.txt|cut -d':' -f1-4|while read i; do grep -h $i test.txt;done|sort|uniq|while read x; do sed -i.bak -e s/$x// test.txt ;done
|
|
|
|
|
sed -i.bak '/^[[:space:]]*$/d' test.txt
|
|
|
|
|
rm *.bak
|