Author: schultz Date: Sat Mar 4 16:47:45 2023 New Revision: 1908068 URL: http://svn.apache.org/viewvc?rev=1908068&view=rev Log: Use the user's preferred EDITOR.
Modified: tomcat/site/trunk/tools/update-version.sh Modified: tomcat/site/trunk/tools/update-version.sh URL: http://svn.apache.org/viewvc/tomcat/site/trunk/tools/update-version.sh?rev=1908068&r1=1908067&r2=1908068&view=diff ============================================================================== --- tomcat/site/trunk/tools/update-version.sh (original) +++ tomcat/site/trunk/tools/update-version.sh Sat Mar 4 16:47:45 2023 @@ -5,10 +5,11 @@ # Run update-version.sh with -h or --help for usage instructions. # +SCRIPT_DIR=$( dirname $0 ) +EDITOR=${EDITOR:-vi} OLD_RELEASE=$1 NEW_RELEASE=$2 RELEASE_DATE=${3:-$(date -I)} -SCRIPT_DIR=$( dirname $0 ) if [ \( "$1" == '-h' \) -o \( "$1" == "--help" \) ] ; then echo "Usage: $0 oldrelease newrelease [release date]" @@ -130,7 +131,7 @@ echo echo "Press ENTER to continue..." read -vi xdocs/index.xml xdocs/oldnews.xml +"${EDITOR}" xdocs/index.xml xdocs/oldnews.xml echo echo "Done. You should run 'svn status' to see whcih files changed, and maybe an 'svn diff' on some of them." --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org