Skip to content
Browse files

removed update version

  • Loading branch information...
1 parent 934462e commit 66dfccf98df4e12355427dc346522c25d525b66d Martin Logan committed Dec 31, 2009
Showing with 1 addition and 40 deletions.
  1. +1 −1 lib/faxien/src/fax_install.erl
  2. +0 −39 update_vsn.sh
View
2 lib/faxien/src/fax_install.erl
@@ -406,7 +406,7 @@ install_from_local_release_package(Repos, ReleasePackageArchiveOrDirPath, IsLoca
ok ->
ok;
{error, {failed_to_install, AppAndVsns}} ->
- %% The release does not contain all the applications required. Pull them down, install them, and try again.
+ % The release does not contain all the applications required. Pull them down, install them, and try again.
lists:foreach(fun({AppName, AppVsn}) ->
install_remote_application(Repos, ReleaseErtsVsns, AppName, AppVsn, Force, Timeout)
end, AppAndVsns),
View
39 update_vsn.sh
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-
-if [ -e "./_build.cfg" ];then
- echo "found _build.cfg beginning version update"
-else
- echo "no _build.cfg in `pwd`, exiting"
- exit 1
-fi
-
-CURRENT_VSN=$(grep vsn _build.cfg | awk '{print $3}' | sed -e 's/"//g')
-
-NEW_LAST_DIGIT=$(echo "$(echo $CURRENT_VSN | sed -e 's/.*\.\(.*\)/\1/') + 1" | bc -l)
-VSN_STEM=$(echo $CURRENT_VSN | sed -e 's/\(.*\)\..*/\1/')
-NEW_VSN="$VSN_STEM.$NEW_LAST_DIGIT"
-if [ $# != 0 ];then
- NEW_VSN=$1
-fi
-
-if [ $# = 2 ];then
- CURRENT_VSN=$1
- NEW_VSN=$1
- echo "using versions specified entirely by the user"
-fi
-
-echo "Starting version upgrade from `pwd`"
-FILES=$(find . -type f | xargs grep $CURRENT_VSN | awk -F: '{print $1}')
-
-echo "Changing version from $CURRENT_VSN to $NEW_VSN"
-echo "within $FILES"
-
-for FILE in $FILES;do
- TMP_FILE="$FILE.tmp"
- sed -e "s/$CURRENT_VSN/$NEW_VSN/" $FILE > $TMP_FILE
- mv $TMP_FILE $FILE
-done
-
-rm Binary file matches
-exit

0 comments on commit 66dfccf

Please sign in to comment.
Something went wrong with that request. Please try again.