source: projects/ckbs/trunk/commit.sh @ 330

Last change on this file since 330 was 330, checked in by bradbell, 11 years ago

This is a template file for making commits to the dismod4 repository.
Lines with no 'at' characters, are general comments not connected to
a specifi file. Lines containing an 'at' character are "file name"
followed by comment; for example

commit.sh: For this example, commit.sh is the only file committed.

  • Property svn:executable set to *
File size: 939 bytes
Line 
1#! /bin/bash
2#
3# replacement text for this commit
4cat << EOF > commit.$$
5This is a template file for making commits to the dismod4 repository.
6Lines with no 'at' characters, are general comments not connected to
7a specifi file. Lines containing an 'at' character are "file name"
8followed by comment; for example
9
10commit.sh@ For this example, commit.sh is the only file committed.
11EOF
12# -----------------------------------------------------------------------
13dir=`pwd | sed -e 's|.*/ckbs/\([^/]*\).*|\1|'`
14list=`sed -e '/@/! d' -e 's/@.*//' commit.$$`
15msg=`sed -e '/@ *$/d' -e 's|.*/\([^/]*@\)|\1|' -e 's|@|:|' commit.$$`
16rm commit.$$
17echo "svn commit -m \""
18echo "$msg"
19echo "\" \\"
20echo "$list"
21read -p "is this ok [y/n] ?" response
22if [ "$response" != "y" ]
23then
24        exit 1
25fi
26#
27if ! svn commit -m "$msg" $list
28then
29        echo "commit.sh: commit failed"
30        exit 1
31fi
32#
33echo "mv commit.sh commit.old"
34mv commit.sh commit.old
35svn revert commit.sh
Note: See TracBrowser for help on using the repository browser.