Created
September 11, 2008 16:02
-
-
Save quinn/10248 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: svntouch.sh 602 2007-10-01 19:40:17Z galbrecht $ | |
# $URL$ | |
# svntouch.sh | |
# description | |
# touch a file and add it to svn | |
# this saves the steps fo having to do these two things manually: | |
# $ touch file | |
# $ svn add file | |
# usage | |
# requires at least one argument, the name of the file to touch & add | |
# $ svntouch file | |
# author | |
# greg albrecht (gba@schematic.com) | |
# | |
# | |
# comment by quinn: | |
# greg's cript didn't work. had to fix it. forget what i did tho =/ | |
# also, i changed the filename to 'svn-touch' and put it in /usr/local/bin | |
# if we're passed an argument | |
if [ "$1" ]; then | |
# and the argument doesn't exist on the filesystem as a dir, socket, pipe or file | |
if [ ! -x "$1" ]; then | |
# touch it | |
touch $1 | |
# add it to svn | |
svn add $1 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment