bbd0e0c568
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/tycho.git#15edd47bbba0d2b7739884e73cfbdc5636e177f9
26 lines
596 B
Bash
Executable File
26 lines
596 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. $(pwd)/tycho-scripts.sh
|
|
|
|
projLoc=$1
|
|
zipLoc=$projLoc/target/*.zip
|
|
mfLoc=$2
|
|
|
|
zipDir=`dirname ${zipLoc}`
|
|
zipFile=`basename ${zipLoc}`
|
|
tmpDir=${zipDir}/tmp
|
|
[ -z "$mfLoc" ] && mfLoc=/dev/null
|
|
|
|
mkdir -p ${tmpDir}
|
|
unzip -d ${tmpDir} ${zipLoc}
|
|
wantedBundles=`sed 's/ fragment=\"true\"//' ${projLoc}/*.product | sed -n 's/.*<plugin id=\"\(.*\)\"\/>.*/\1/ p'`
|
|
pushd ${tmpDir}
|
|
pluginsDir=`find . -type d -name plugins`
|
|
pushd ${pluginsDir} && rm -rf *
|
|
symlinkBundles "${wantedBundles}"
|
|
for b in *; do readlink $b; done >$mfLoc
|
|
popd
|
|
zip -ry ${zipFile} *
|
|
popd
|
|
mv ${tmpDir}/${zipFile} ${zipLoc}
|