Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for platos/_scripts/build-struct between version 1.12 and 1.13

version 1.12, 2005/09/18 01:38:18 version 1.13, 2005/09/18 10:27:22
Line 16 
Line 16 
 # 30/01/2003 - created  # 30/01/2003 - created
 #  #
   
 # $Platon: Platon.SK/office/_scripts/build-struct,v 1.11 2005/09/18 00:31:15 rajo Exp $  # $Platon: platos/_scripts/build-struct,v 1.12 2005/09/18 01:38:18 rajo Exp $
   
 usage()  usage()
 { # {{{  { # {{{
         echo "Usage:"          echo -e "${RED}Usage:"
         echo          echo
         echo "$0 <PostScript|PDF|HTML|RTF> <LATEX|PDFLATEX|LATEX2HTML|LATEX2RTF> <command>"          echo -e "$0 <PostScript|PDF|HTML|RTF> <LATEX|PDFLATEX|LATEX2HTML|LATEX2RTF> <command>${RESET}"
         echo          echo
         exit 1          exit 1
 } # }}}  } # }}}
Line 31  test_environ()
Line 31  test_environ()
 { # {{{  { # {{{
         for i in $*; do          for i in $*; do
                 if [ -z "${!i}" ]; then                  if [ -z "${!i}" ]; then
                         echo "Empty \$$i, did you specify it in Makefile and export it?"                          echo -e "${RED}Empty ${YELLOW}\$$i${RED}, did you specify it in Makefile and export it?${RESET}"
                         exit 1                          exit 1
                 fi                  fi
         done          done
Line 77  if [ "X$2" = "X" ]; then
Line 77  if [ "X$2" = "X" ]; then
         usage;          usage;
 fi  fi
 if [ "X$3" = "X" ]; then  if [ "X$3" = "X" ]; then
         echo "Please, specify command $2= in your Makefile"          echo -e "${RED}Please, specify command $2= in your Makefile${RESET}"
         exit 1          exit 1
 else  else
         cmd="`which $3`";          cmd="`which $3`";
         version="`$cmd -v 2>/dev/null | head -n 1`"          version="`$cmd -v 2>/dev/null | head -n 1`"
         if [ "Bad$version" = "Bad" ]; then          if [ "Bad$version" = "Bad" ]; then
                 echo "Command $3 returns bad version string, Building of $1 skipped ..."                  echo -e "${RED}Command ${YELLOW}$3${RED} returns bad version string, Building of $1 skipped ...${RESET}"
                 exit 1;                  exit 1;
         fi          fi
 fi  fi
 # }}}  # }}}
   
 echo "Building $1 with $cmd version $version"  echo -e "${BLUE}Building ${MAGENTA}$1${BLUE} with ${YELLOW}$cmd${BLUE} version ${YELLOW}$version${RESET}"
 # {{{  # {{{
 if [ "X$1" = "XPostScript" ]; then  if [ "X$1" = "XPostScript" ]; then
   
Line 112  elif [ "X$1" = "XRTF" ]; then
Line 112  elif [ "X$1" = "XRTF" ]; then
         make_symlinks RTF rtf_OUTPUT rtf_INPUT          make_symlinks RTF rtf_OUTPUT rtf_INPUT
   
 else  else
         echo "I don't know, what do you want with parameter '$1'..."          echo -e "${RED}I don't know, what do you want with parameter '$1'...${RESET}"
         exit 1          exit 1
 fi  fi
 #}}}  #}}}

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top