This file contains hidden or 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
REM Raymond Chen's replacement for Unix 'which' | |
@for %%e in (%PATHEXT%;.DLL) do @for %%i in (%1%%e) do @if NOT "%%~$PATH:i"=="" | |
echo %%~$PATH:i |
This file contains hidden or 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
#!/bin/bash | |
# Parses git log and finds the commit with the specified svn change | |
# number. | |
git log | awk "/^commit / {c=\$2} /git-svn-id:.*@$1 / {print c}" | |
# This is obsoleted by git svn find-rev rNNNN |
This file contains hidden or 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
An Ant rule for restarting Tomcat when building a GWT app: | |
<target name="deploy" depends="war" description="Copy WAR file to Tomcat"> | |
<property name="apache.home" | |
location="/home/dominicc/apache-tomcat-6.0.18" /> | |
<exec executable="${apache.home}/bin/shutdown.sh" /> | |
<delete dir="${apache.home}/webapps/TestApp" failonerror="false" /> | |
<copy todir="${apache.home}/webapps" file="TestApp.war" /> | |
<exec executable="${apache.home}/bin/startup.sh" /> | |
</target> |
NewerOlder