maven2/generate-tarball.sh
2023-07-13 04:13:46 +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" *