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