#!/bin/bash

MSG=$1
LOG=-1
START=-1

if [ "$1" == "-l" ]
then
  MSG=$2
  LOG=0
elif [ "$1" == "-ls" ]
then
  MSG=$2
  LOG=0
  START=0
fi


svn ci -m "$MSG"


if [ $LOG -eq 0 ]
then
  track stop "$MSG"
fi

if [ $START -eq 0 ]
then
  track start
fi