File: commit.sh

package info (click to toggle)
ddccontrol-db 20250504-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,820 kB
  • sloc: xml: 5,949; sh: 119; makefile: 32; sed: 16; perl: 12
file content (12 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
echo "Updating working copy..."
svn update $SVN_OPTS || exit 1
echo "Committing your changes (message: '$1')..."
svn commit $SVN_OPTS -m "$1"
echo "Updating ChangeLog..."
svn update $SVN_OPTS
REVISION=$(svn info |grep ^Revision |cut -f2 -d' ')
(TZ=GMT svn2cl -i -r $REVISION --authors=AUTHORS --stdout; cat ChangeLog) >ChangeLog.tmp && mv -f ChangeLog.tmp ChangeLog
echo "Committing ChangeLog..."
svn commit $SVN_OPTS -m "Update ChangeLog" ChangeLog
echo "OK"