Skip to content

Commit

Permalink
fix changelog parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
polmr committed Aug 19, 2019
1 parent 94d349f commit 03df4ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/generate_deb_changelog_entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
in_file="$2"
out1=$(awk 'f; /\);/{f=0} /const QString Preferences::CHANGELOG = QString::fromUtf8/{f=1}' $in_file)
# remove ");
out2=$(awk -F'"\);' '{print $1}' <<< "$out1")
out2=$(awk -F'")*;' '{print $1}' <<< "$out1")
# remove leading and trailing space, tabs and quote marks
out3=$(awk '{ gsub(/^[ \t"]+|[ \t"\n]+$/, ""); print }' <<< "$out2")
# remove trailing "\n"
Expand Down
2 changes: 1 addition & 1 deletion build/generate_rpm_changelog_entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
in_file="$1"
out1=$(awk 'f; /\);/{f=0} /const QString Preferences::CHANGELOG = QString::fromUtf8/{f=1}' $in_file)
# remove ");
out2=$(awk -F'"\);' '{print $1}' <<< "$out1")
out2=$(awk -F'")*;' '{print $1}' <<< "$out1")
# remove leading and trailing space, tabs and quote marks
out3=$(awk '{ gsub(/^[ \t"]+|[ \t"\n]+$/, ""); print }' <<< "$out2")
# remove trailing "\n"
Expand Down

0 comments on commit 03df4ad

Please sign in to comment.