Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
12345678910111213141516171819202122232425 |
- #!/bin/sh
-
- SVN=`which svn`
- SED=`which sed`
- if [ "" = "${SED}" ]; then
- echo "This needs sed."
- exit 0;
- fi;
-
- SVNREV=`$SVN info | grep Revision`
- SVNREV=${SVNREV##*: }
-
- if [ "${1}" = "--pre" ]; then
- # Substitute the version string
- ${SED} -r 's/int SVN_REVISION = /int SVN_REVISION = '${SVNREV}'; \/\/ /' ${PWD}/src/com/dmdirc/Main.java > ${PWD}/src/com/dmdirc/Main.java.tmp 2>/dev/null
- elif [ "${1}" = "--post" ]; then
- # Unsubstitute the version string
- ${SED} -r 's/int SVN_REVISION = .* ([0-9]+);/int SVN_REVISION = \1;/' ${PWD}/src/com/dmdirc/Main.java > ${PWD}/src/com/dmdirc/Main.java.tmp 2>/dev/null
- fi;
-
- if [ -e ${PWD}/src/com/dmdirc/Main.java.tmp ]; then
- mv ${PWD}/src/com/dmdirc/Main.java.tmp ${PWD}/src/com/dmdirc/Main.java
- fi;
-
- cat ${PWD}/src/com/dmdirc/Main.java | grep SVN
|