prep_tarball 792 B

123456789101112131415161718192021222324
  1. #!/bin/sh -e
  2. # This script will be executed by the 'mkrelease' script to do any tasks
  3. # necessary during tarball creation of this project.
  4. #
  5. # It will be executed from the top-level directory of the project.
  6. make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
  7. make AWK=awk GREP=grep menuselect-tree
  8. make_tex_docs() {
  9. # make backup of asterisk.tex because we are going to alter it
  10. cp asterisk.tex asterisk.tex.orig
  11. sed -e "s/ASTERISKVERSION/${VERSION}/" asterisk.tex > asterisk_local.tex
  12. mv asterisk_local.tex asterisk.tex
  13. rubber --pdf asterisk.tex
  14. latex2html asterisk.tex
  15. # restore backup of asterisk.tex
  16. mv asterisk.tex.orig asterisk.tex
  17. }
  18. VERSION=`cat .version`
  19. cd doc/tex && make_tex_docs