Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add some comments to the top of .rvn files

  • Loading branch information...
commit baba942a2030994dfb5db60f724c8fce27e352c5 1 parent 2e8ef67
@rupa authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 rvn.rvn
View
12 rvn.rvn
@@ -1,3 +1,5 @@
+# this is a revision file generated by rvn
+# You probably don't want to edit it by hand
[ "$1" ] || exit
touch "$1"
patch "$1" <<'EOF'
@@ -837,3 +839,13 @@ patch "$1" <<'EOF'
> s|status) shift; mystatus $*;;
EOF
echo 25 : refinements to status function
+[ "$2" = 25 ] && exit
+patch "$1" <<'EOF'
+60c60,62
+< echo "[ \"\$1\" ] || exit" > "$pre$fl.$ext"
+---
+> echo "# this is a revision file generated by rvn" > "$pre$fl.$ext"
+> echo "# You probably don't want to edit it by hand" >> "$pre$fl.$ext"
+> echo "[ \"\$1\" ] || exit" >> "$pre$fl.$ext"
+EOF
+echo 26 : add some comments to the top of .rvn files
Please sign in to comment.
Something went wrong with that request. Please try again.