Skip to content

Commit

Permalink
Add some comments to the script
Browse files Browse the repository at this point in the history
  • Loading branch information
sharifsalah committed Aug 8, 2019
1 parent ea77679 commit 0830310
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build.sh
Expand Up @@ -16,6 +16,9 @@ fi

if [[ -f ${BUILD_DIR}/CONTRIBUTING.md ]]; then

# Copy the specified file into a temporary file.
# Copies from the first line until the first comment.
# This script overwrites the remainder of the original contents.
sed '/<!---/q' content/contributing/opencue/contributing.md \
> contributing.tmp

Expand All @@ -29,6 +32,7 @@ if [[ -f ${BUILD_DIR}/CONTRIBUTING.md ]]; then
# Update the publication date for the page
sed -i '4s/20[0-9]\{2\}-[0-9]\{1,2\}-[0-9]\{1,2\}/'${LAST_UPDATE}'/' contributing.tmp

# Copy most of the source file into the temporary file
tail -n +2 ${BUILD_DIR}/CONTRIBUTING.md >> contributing.tmp

mv contributing.tmp content/contributing/opencue/contributing.md
Expand Down

0 comments on commit 0830310

Please sign in to comment.