Need help in creating a shell script to automate svnstats process


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help in creating a shell script to automate svnstats process
# 1  
Old 05-28-2012
Need help in creating a shell script to automate svnstats process

Hi,

I am trying to create a shell script to automate the following process of getting svn stats:-

Step1:- cd to checkout location.
Note that the checked code have multiple modules in respective folders [ like folder1 hv one module,folder2 have second module]

Step2:- Execute this command inside each module:-
svn log -v --xml > folder1/logfile_folder1.log
svn log -v --xml > folder2/logfile_folder2.log

Note that the log created should be as per folder/module name.


Step3:- Execute this:-

java -jar statsvn.jar <logfile> <checked-out-module>

Note:- This output should be of individual module & should be created in respective module's folder.


Can anyone please throw some light in this script's creation.

Thx
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Open Source

Help with writing Shell Script to automate process using multiple commands

Hello! Need help to write a Linux script that can be run from windows using command/Cygwin/any other way. I am new to scripting, actually i am trying to automate server health check like free disk space, memory along with few services status, if any services is not running then start services ,... (7 Replies)
Discussion started by: Sayed Ibrahim
7 Replies

2. Shell Programming and Scripting

Script to automate recovery process

Hello All! First post... I am working on a script that is used to recover a crashed drive from an rsync backup. I'm down to the place where I need to create all of the directories in /mnt where I will then mount each of the volumes and begin the restore process to each volume... I have... (3 Replies)
Discussion started by: RogerBaran
3 Replies

3. UNIX for Dummies Questions & Answers

Automate sftp process using script

Hi, guys, I am trying to automate a sftp process using "expect" method (since the key authentication method is disabled in my company network, there is no helping it). In order to try, I type in the command manually: sftp @ > << EOF >cd >ls -l >EOF >Connecting to @servername password: ... (3 Replies)
Discussion started by: warmboy610
3 Replies

4. Shell Programming and Scripting

Creating an script to automate on mac

First of all, i'm sorry if this topic isn't in the right place, I have a Mac and I've read that is unix based, that's why I'm writing here. I'm trying to "create" a script with which i will be able to download any Tv Show automatically and then rename it. I'm using for that goal the following... (1 Reply)
Discussion started by: Qyles
1 Replies

5. Shell Programming and Scripting

Bash script to Automate the Virtual Host creation process!!

Hi all, This is my sample code in /etc/httpd/conf.d/applications.conf file currently we are creating subdomain mannually for every new subdomain. I want to automate this process througs bash script , how its possible. <VirtualHost *:80> ServerName google.com ServerAlias google.com... (5 Replies)
Discussion started by: anishkumarv
5 Replies

6. Shell Programming and Scripting

Automate emailing via shell script

Hi, I am struggling to send my email via shell script. I can type the command in and it works pefectly: mail -s "subject" email@email.co.email < text_to_sendHowever if I try and automate it it fails. I have tried setting variables for all aspects (mail, email addr, subject, message) with no... (3 Replies)
Discussion started by: mcclunyboy
3 Replies

7. Shell Programming and Scripting

Creating background process for my shell

I actually posted this problem on a different forum, but figured this would be a more appropriate place to post it. OK so I've created my own shell, but I can't get the background process function to run properly! What I want to do is to run a process in the background, and also print when the... (2 Replies)
Discussion started by: hansel13
2 Replies

8. Shell Programming and Scripting

Error in script to automate the daily monitoring process of UNIX server and it's proc

hi friends, I am trying to automate the daily monitoring process of UNIX server and it's processes. the script are below i executed the above script using ksh -x monitortest1.sh in root login . It shows error at some lines . 1. i logged in using root ,but it... (8 Replies)
Discussion started by: rdhaprakasam
8 Replies

9. Shell Programming and Scripting

Automate shell script

I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote #!/bin/bash cd /var/tmp /home/server/steve/pca --askauth -idx /opt/app/bin/expect <<EOF expect... (3 Replies)
Discussion started by: sam786
3 Replies

10. UNIX for Advanced & Expert Users

Shell Script to Automate

I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote #!/bin/bash cd /var/tmp /home/server/steve/pca --askauth -idx /opt/app/bin/expect <<EOF expect... (1 Reply)
Discussion started by: sam786
1 Replies
Login or Register to Ask a Question
SVN-AUTORELEASEDEB(1)					User Contributed Perl Documentation				     SVN-AUTORELEASEDEB(1)

NAME
svn-autoreleasedeb - Automatic Release of debian packages from DESCRIPTION
This script generates and uploads the debian package for svn modules managed by svn-buildpackage. svn-autoreleasedeb will maintain a state file of all the packages you want to be automatically published, and every time you commit the debian/changelog file of your package, changing the debian version to a greater value, it will be published. All the parameters to the script are configured in the conffile. There is no command-line switch. See svn-autoreleasedeb.conf(5) for more information. USING
There are two ways of using this script: 1) Run as user svn-autoreleasedeb in cron. This is very useful for software houses that want to have the "nightily build" version of the software published automatically. In this case, the config file will be "/etc/svn-autoreleasedeb.conf" and it will use /var/lib/svn-autoreleasedeb/ as scratch dir. NOTE: edit /etc/default/svn-autoreleasedeb to control this behavior NOTE 2: all output will be thrown in /var/log/svn-autoreleasedeb/run.log 2) Run as yourself, it will automatizate the work you will have if you have your packages in SVN. In this case, the config file will be $HOME/.svn-autoreleasedeb/conf and the scratch dir will be $HOME/.svn-autoreleasedeb. svn-autoreleasedeb will not create defaults, you must have the configuration file created before running svn-autoreleasedeb. See svn-autoreleasedeb.conf(5). TODO
- Use a snapshot of the time of the commit in the changelog to checkout the source - Localize the messages. - Work with other than all lowercase in conffile. - Use a better format for conffile. _EXIT CODES _exit codes: 0 = Clean _exit 1 = Config file not found 2 = No packages in config file 3 = Couldn't open the state file 4 = Couldn't open the state file for writing 5 = Couldn't determine architecture SEE ALSO
svn-buildpackage(1), svn(1), svn-autoreleasedeb.conf(5), dupload(1) AUTHOR
This manual page was written by Daniel Ruoso <daniel@ruoso.com>, for the Debian GNU/Linux system. perl v5.8.7 2006-08-16 SVN-AUTORELEASEDEB(1)