Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
0240b286
Commit
0240b286
authored
18 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add script major_release_split to simplify creating release notes for
multiple releases.
parent
d4b83250
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tools/major_release_split
+30
-0
30 additions, 0 deletions
src/tools/major_release_split
with
30 additions
and
0 deletions
src/tools/major_release_split
0 → 100755
+
30
−
0
View file @
0240b286
:
# This program takes release.sgml and breaks it up into
# per-major-release files that can be copied to the proper
# CVS tree.
[ "$#" -ne 1 ] && echo "Usage: $0 release_sgml_file" 1>&2 && exit 1
FILE="$1"
trap "rm -f /tmp/preamble" 0 1 2 3 15
# Create the SGML preamble file
# Copy from the start of the file to the first "sect1" heading
grep -B 1000000 "`sed -n '/<sect1/p;/<sect1/q' \"$FILE\"`" "$FILE" |
# exclude last line
sed -n '$q;p' > /tmp/preamble
# Create per-major-release files
# spin over all "sect1" releases to find major release numbers
sed -n 's/^ *<sect1 id="release-\([^-]-[^-]\).*/\1/p' "$FILE" |
uniq |
while read RELEASE
do
# copy preamble
cp /tmp/preamble "$RELEASE"-"`basename $FILE`"
# grab remainder of file for major release
grep -A 10000000 "<sect1 id=\"release-$RELEASE" "$FILE" >> "$RELEASE"-"`basename $FILE`"
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment