#!/bin/bash set -e rm -rf R4_platform-aggregator rm -rf eclipse-source.tar.bz2 git clone --recurse-submodules git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git R4_platform-aggregator pushd R4_platform-aggregator find . -type d -name "\.git" -exec rm -rf {} \; find . -type f -name "*.class" -exec rm -rf {} \; find . -name *.jar -exec rm -rf {} \; find . -type f -name *.so -exec rm -rf {} \; find . -type f -name *.dll -exec rm -rf {} \; find . -type f -name *.jnilib -exec rm -rf {} \; popd tar cjf eclipse-source.tar.bz2 R4_platform-aggregator