Permalink
Browse files

add some comments to the top of .rvn files

  • Loading branch information...
1 parent 2e8ef67 commit baba942a2030994dfb5db60f724c8fce27e352c5 @rupa committed Jul 2, 2011
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

0 comments on commit baba942

Please sign in to comment.