diff options
Diffstat (limited to 'releng/org.eclipse.linuxtools.releng/tools/localSourceSetup.sh')
-rwxr-xr-x | releng/org.eclipse.linuxtools.releng/tools/localSourceSetup.sh | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/releng/org.eclipse.linuxtools.releng/tools/localSourceSetup.sh b/releng/org.eclipse.linuxtools.releng/tools/localSourceSetup.sh deleted file mode 100755 index 753d871f27..0000000000 --- a/releng/org.eclipse.linuxtools.releng/tools/localSourceSetup.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -# change into tools subdirectory -cd `dirname $0` -buildProperties=../build.properties -#org.eclipse.linuxtools.releng/setup -pushd ../.. > /dev/null -workspace=`pwd` -popd > /dev/null -mapfile=../maps/linuxtools.map -dirProp=localSourceCheckoutDir - -#need localSourceCheckoutDir -checkoutDir=`grep "^$dirProp" $buildProperties | awk -F= '{ print $2 }'` -if [[ -z "$checkoutDir" ]]; then - echo "$0: $dirProp not defined in build.properties" >&2 - exit 1 -fi - -echo "Using $dirProp $checkoutDir" -mkdir -p "$checkoutDir" - -echo "Symlinking plugins and fragments" -mkdir -p "$checkoutDir/plugins" -for plugin in `grep -E '^(plugin|fragment).*SVN' $mapfile | awk -F, '{ print $NF }'` -do - if [[ -d "$workspace/$plugin" ]]; then - ln -sfT "$workspace/$plugin" "$checkoutDir/plugins/$plugin" - else - echo "Warning: '$workspace/$plugin' not found" >&2 - fi -done - -echo "Symlinking features" -mkdir -p "$checkoutDir/features" -for feature in `grep '^feature.*SVN' $mapfile | awk -F, '{ print $NF }'` -do - if [[ -d "$workspace/$feature" ]]; then - hasFeatureInName=`echo $feature | grep -c -E 'feature$'` - if [[ $hasFeatureInName -gt 0 ]]; then - # if .feature, replace with -feature - fixedName=`echo $feature | sed 's/\.feature$/-feature/'` - else - # no "feature", so append - fixedName="$feature-feature" - fi - ln -sfT "$workspace/$feature" "$checkoutDir/features/$fixedName" - else - echo "Warning: '$workspace/$feature' not found" >&2 - fi -done - -echo "Moving docs" -mkdir -p "$checkoutDir/doc" -mv -f "$checkoutDir/plugins/"*{.,-}{doc,docs}{,.*} "$checkoutDir/doc/" 2>/dev/null - -echo "Moving examples" -mkdir -p "$checkoutDir/examples" -mv -f "$checkoutDir/plugins/"*.examples{,.*} "$checkoutDir/examples/" 2>/dev/null |