maven2/SOURCES/generate-tarball.sh
2021-09-10 12:17:40 +00:00

18 lines
316 B
Bash
Executable File

#!/bin/bash
set -e
name=maven2
version="$(sed -n 's/Version:\s*//p' *.spec)"
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
# RETRIEVE
svn export "https://svn.apache.org/repos/asf/maven/maven-2/tags/maven-${version}/" "${name}-${version}"
# CLEAN TARBALL
rm */*.jar
tar cf "../${name}-${version}.tar.gz" *