From d17bfc567fa963dc51da228c87b743a516c648e8 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Thu, 29 Jun 2023 11:18:31 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 2 ++ generate-tarball.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 generate-tarball.sh diff --git a/.gitignore b/.gitignore index 6cac6fc..d005c66 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +jsr-305-0.4.20090319.tar.xz +/jsr-305-20130910svn.tgz /jsr-305-3.0.2.tar.gz diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100644 index 0000000..740a55f --- /dev/null +++ b/generate-tarball.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +name=jsr-305 +version="$(sed -n 's/Version:\s*//p' *.spec)" + +rm -rf "${name}-${version}" + +git clone 'https://github.com/amaembo/jsr-305' +pushd 'jsr-305' +git checkout 'd7734b13c61492982784560ed5b4f4bd6cf9bb2c' +popd + +mv 'jsr-305' "${name}-${version}" + +rm -f "${name}-${version}.tar.gz" +tar -czf "${name}-${version}.tar.gz" "${name}-${version}" +rm -rf "${name}-${version}"