Skip to content
Snippets Groups Projects
Commit 942ad26c authored by hluk's avatar hluk
Browse files

create_source_package.sh checks if version is in CHANGES

parent 6998c49e
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,11 @@ die () { ...@@ -9,7 +9,11 @@ die () {
exit 1 exit 1
} }
grep -q '^v'"$version"'$' CHANGES ||
die "CHANGES file doesn't contain changes for given version!"
git archive --format=tar.gz --prefix="copyq-$version/" --output="$out" "v$version" || git archive --format=tar.gz --prefix="copyq-$version/" --output="$out" "v$version" ||
die "First arguments must be existing version (tag v<VERSION> must exist in repository)!" die "First arguments must be existing version (tag v<VERSION> must exist in repository)!"
echo "Created source package for version $version: $out" echo "Created source package for version $version: $out"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment