Author: mturk Date: Wed Mar 7 12:08:16 2012 New Revision: 1297947 URL: http://svn.apache.org/viewvc?rev=1297947&view=rev Log: Use cmdline option to turn on html2txt conversion for CHANGES and NEWS
Modified: tomcat/jk/trunk/tools/jkrelease.sh Modified: tomcat/jk/trunk/tools/jkrelease.sh URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/tools/jkrelease.sh?rev=1297947&r1=1297946&r2=1297947&view=diff ============================================================================== --- tomcat/jk/trunk/tools/jkrelease.sh (original) +++ tomcat/jk/trunk/tools/jkrelease.sh Wed Mar 7 12:08:16 2012 @@ -47,6 +47,7 @@ usage() { echo "Usage:: $0 -v VERSION [-f] [-r revision] [-t tag | -b BRANCH | -T | -d DIR]" echo " -v: version to package" echo " -f: force, do not validate tag against version" + echo " -d: create text documentation for html" echo " -t: tag to use if different from version" echo " -r: revision to package" echo " -b: package from branch BRANCH" @@ -71,6 +72,7 @@ copy_files() { #################### MAIN ############## +txtgen=n conflict=0 while getopts :v:t:r:b:d:p:k:Tf c do @@ -88,6 +90,7 @@ do d) local_dir=$OPTARG conflict=$(($conflict+1));; f) force='y';; + d) txtgen='y';; \:) usage exit 2;; \?) usage @@ -240,6 +243,8 @@ find ${JK_DIST} -name .svn -exec rm -rf cd ${JK_DIST}/native +if [ $txtgen = y ] +then # Check for links, elinks or w3m W3MOPTS="-dump -cols 80 -t 4 -S -O iso-8859-1 -T text/html" ELNKOPTS="-dump -dump-width 80 -dump-charset iso-8859-1 -no-numbering -no-home -no-references" @@ -306,6 +311,7 @@ then echo "Can't convert html to text (NEWS)" exit 1 fi +fi # Generate configure et. al. ./buildconf.sh --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org