Skip to content

Commit

Permalink
Update CHANGES.md file name references
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Apr 10, 2021
1 parent 4b0edb6 commit f5ea994
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is step-by-step description on how to release new version of CopyQ.

# Update Version and Changelog

Update CHANGES file.
Update `CHANGES.md` file.

Bump version.

Expand Down
4 changes: 2 additions & 2 deletions utils/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ version=$1
version_file=version.cmake
appdata_file=shared/com.github.hluk.copyq.appdata.xml
itemwidget_file=src/item/itemwidget.h
changes_file=CHANGES
changes_file=CHANGES.md

check_version_format() {
if ! grep -q '^[0-9]\+\.[0-9]\+\.[0-9]\+$' <<< "$version"; then
Expand All @@ -29,7 +29,7 @@ check_version_format() {

check_changes() {
last_changes_version=$(head -1 "$changes_file")
if [[ "$last_changes_version" != "v$version" ]]; then
if [[ "$last_changes_version" != "# v$version" ]]; then
echo "Update $changes_file first"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion utils/create_source_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ die () {
exit 1
}

grep -q '^v'"$version"'$' CHANGES ||
grep -q '^# v'"$version"'$' "CHANGES.md" ||
die "CHANGES file doesn't contain changes for given version!"

grep -q '"v'"$version"'"' "$version_header" ||
Expand Down
2 changes: 1 addition & 1 deletion utils/fedora/copyq.spec
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/com.github.hluk.%{
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/com.github.hluk.%{name}.appdata.xml

%files -f %{name}.lang
%doc AUTHORS CHANGES HACKING README.md
%doc AUTHORS CHANGES.md HACKING README.md
%license LICENSE
%{_bindir}/%{name}
%{_libdir}/%{name}/
Expand Down

0 comments on commit f5ea994

Please sign in to comment.