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

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

[cbks/trunk] This is a template file for making commits to the ckbs repository

Lines containing a colon character are "file name" followed by comment; e.g.,
commit.sh: for this case commit.sh is the only file to be modified.

  • Property svn:executable set to *
File size: 732 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 ckbs repository
6
7Lines containing a colon character are "file name" followed by comment; e.g.,
8commit.sh: for this case commit.sh is the only file to be modified.
9EOF
10# -----------------------------------------------------------------------
11dir=`pwd | sed -e 's|.*/ckbs/\([^/]*\).*|\1|'`
12list=`sed -e '/:/! d' -e 's/:.*//' commit.$$`
13msg=`sed -e 's|.*/\([^/]*:\)|\1|' -e "1,1s|^|[cbks/$dir] |" commit.$$` 
14rm commit.$$
15echo "svn commit -m \""
16echo "$msg"
17echo "\" \\"
18echo "$list"
19read -p "is this ok [y/n] ?" response
20if [ "$response" != "y" ]
21then
22        exit 1
23fi
24svn commit -m "$msg" $list
25svn revert commit.sh
Note: See TracBrowser for help on using the repository browser.