Changeset 5284997 in rtems-release


Ignore:
Timestamp:
Nov 3, 2016, 5:40:48 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
8c365179ece35d4d61b151cb4b7609059840900b, 62681ee71d8e9f538f5f1899c12b89ef36ccb4cf
Children:
33b7bab
Parents:
0cf9c0e
git-author:
Chris Johns <chrisj@…> (11/03/16 05:40:48)
git-committer:
Chris Johns <chrisj@…> (11/03/16 06:11:54)
Message:

docs: Build and package HTML, PDF and SingleHTML.

Add support to checksum the build files.

Fix the internal path name in the HTML tar file.

Make a single tar file of all the built documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems-release-docs

    r0cf9c0e r5284997  
    5959
    6060#
    61 # The manuals we are building.
    62 #
    63 manuals="c_user posix_users shell user eclipse bsp_howto"
    64 manuals="${manuals} cpu_supplement filesystem develenv"
    65 
    66 #
    67 # Map the manual names in git to friendly names that are for download.
    68 #
    69 manual_map()
    70 {
    71  case $1 in
    72   bsp_howto) echo "bsp-howto" ;;
    73   c_user) echo "c-user" ;;
    74   posix_users) echo "posix-user" ;;
    75   *) echo "$1" ;;
    76  esac
    77 }
    78 
    79 #
    8061# Get the documentation, create the tarball and stamp.
    8162#
     
    9475mkdir install
    9576cd ${git_local}
    96  ./waf distclean configure --prefix=../install/${prefix}
     77 ./waf distclean configure --prefix=../install/${prefix} --pdf --singlehtml
    9778 ./waf build install
    98  ./waf --pdf build install
    9979 cd ..
    10080
     
    10484mkdir ${top}/${release}/docs
    10585cd install
     86 echo "Creating DOC all rtems-${release}-docs-all.tar.xz"
     87 tar cf - * > ${top}/${release}/docs/rtems-${release}-docs-all.tar.xz
    10688 for p in $(find . -name \*.pdf)
    10789 do
    10890  manual=$(echo $(basename $p) | sed -e "s/\\..*//")
    109   name=$(manual_map ${manual})
     91  base=$(dirname $p)
     92  #
     93  # Compress the PDF and move it out of the way.
     94  #
     95  echo "Creating PDF rtems-${release}-${manual}.pdf.xz"
    11096  xz $p
    111   mv $p.xz ${top}/${release}/docs/rtems-${release}-${name}.pdf.xz
    112   tar cf - ${prefix}/${manual} > ${top}/${release}/docs/rtems-${release}-${name}-html.tar.xz
     97  mv $p.xz ${top}/${release}/docs/rtems-${release}-${manual}.pdf.xz
     98  #
     99  # Create the single html manual
     100  #
     101  echo "Creating SingleHTML rtems-${release}-${manual}.html.xz"
     102  mv ${base}/${manual}.html ${base}/rtems-${release}-${manual}.html
     103  xz ${base}/rtems-${release}-${manual}.html
     104  mv ${base}/rtems-${release}-${manual}.html.xz ${top}/${release}/docs/.
     105  #
     106  # Tar the multi-page html and install.
     107  #
     108  echo "Creating HTML rtems-${release}-${manual}-html.tar.xz"
     109  tar cf - ${base}/${manual} > ${top}/${release}/docs/rtems-${release}-${manual}-html.tar.xz
    113110 done
    114111 cd ..
    115112
    116113#
    117 # Stamp the source and package, include the waf we use.
     114# Stamp the source and package
    118115#
    119116echo "tar Jxf ../${prefix}-unstamped.tar.xz"
     
    121118
    122119cd ${prefix}
    123 echo "Creating VERSION: ${release}"
    124 echo "[version]" > VERSION
    125 echo "release = ${release}" >> VERSION
    126 cd ..
     120 echo "Creating VERSION: ${release}"
     121 echo "[version]" > VERSION
     122 echo "release = ${release}" >> VERSION
     123 cd ..
    127124
    128125echo "tar cf - ${prefix}"
     
    136133. ${top}/rtems-release-package-end
    137134
     135cd ${release}/docs
     136 rm -f ${checksum}sum.txt
     137 for f in $(ls -1)
     138 do
     139  if [ ! -d ${f} ]; then
     140   csum=$(${checksum} -q ${f})
     141   echo "${csum} ${f}" >> ${checksum}sum.txt
     142  fi
     143 done
     144 cd ..
     145
     146echo "Created: ${release}/docs/${checksum}sum.txt"
     147echo "Created: ${release}/docs"
     148
    138149exit 0
Note: See TracChangeset for help on using the changeset viewer.