Skip to content

Commit

Permalink
[README.md] Add "do not edit" comment
Browse files Browse the repository at this point in the history
Closes #45
  • Loading branch information
varadtote authored and joshlf committed Aug 3, 2023
1 parent 761ff2d commit f60615d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!-- Copyright 2022 The Fuchsia Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
found in the LICENSE file.
WARNING: DO NOT EDIT THIS FILE. It is generated automatically. Edits should be
made in the doc comment on `src/lib.rs` or in `generate-readme.sh`.
-->

# zerocopy

Expand Down
10 changes: 7 additions & 3 deletions generate-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ COPYRIGHT_HEADER=$(mktemp)
BODY=$(mktemp)
DISCLAIMER_FOOTER=$(mktemp)

cat > $COPYRIGHT_HEADER <<EOF
cat > $COPYRIGHT_HEADER <<'EOF'
<!-- Copyright 2022 The Fuchsia Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
found in the LICENSE file.
WARNING: DO NOT EDIT THIS FILE. It is generated automatically. Edits should be
made in the doc comment on `src/lib.rs` or in `generate-readme.sh`.
-->
EOF

Expand All @@ -28,7 +32,7 @@ EOF
# characters to convert them to non-link code snippets.
cargo readme | sed 's/\[\(`[^`]*`\)]/\1/g' > $BODY

cat > $DISCLAIMER_FOOTER <<EOF
cat > $DISCLAIMER_FOOTER <<'EOF'
## Disclaimer
Expand Down

0 comments on commit f60615d

Please sign in to comment.