Pastebin

Paste #1443: updatefile()

< previous paste - next paste>

Pasted by tdn

Download View as text

130 function hwl()
131 {
132     updatefile(~/wc/documents/gtd/hwl.txt)
133 }
134
135 function updatefile()
136 {
137     FILE=$1
138     if svn st $FILE |grep -q '^.....K'; then
139         echo "File is already locked. Aborting."
140     else
141         svn up $FILE && \
142         svn lock $FILE && \
143         vim $FILE && \
144         svn ci -m ' * GTD' $FILE && \
145         svn unlock $FILE
146     fi
147 }

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.