Loading

Paste #pi1lwcgg4

  1.   script)
  2.     ##### Game scrips and AI and their libraries
  3.     # First build the bundle files
  4.     if [ -f Makefile ] then;
  5.       make
  6.       make bundle_zip
  7.       make bundle_src
  8.       for f in *source.tar; do [ -f "$f" ] && xz "$f"; done
  9.     fi
  10.     # Create doxygen documention
  11.     mkdir -p bundle/docs/doxygen
  12.     if [ ! -f Doxyfile ] then;
  13.       # When there's no config file (good so!) then create a default one with project name and version
  14.       cp ~/bin/repos/devzone/compiler/Doxyfile.devzone .
  15.       [ -f info.nut ] && infofile=info.nut
  16.       [ -f bundle/info.nut ] && infofile=bundle/info.nut
  17.       [ -f library.nut ] && infofile=library.nut
  18.       [ -f bundle/library.nut ] && infofile=bundle/library.nut
  19.       echo "PROJECT_NAME           = `cat $infofile | grep 'GetName' | awk '{print $5}' | cut -d\" -f2`" >> Doxyfile.devzone
  20.       echo "PROJECT_NUMBER         = `cat $infofile | grep 'GetVersion' | awk '{print $5}' | cut -d; -f2`" >> Doxyfile.devzone
  21.     else
  22.       cat Doxyfile >> Doxyfile.devzone
  23.     fi
  24.     doxygen Doxyfile.devzone
  25.     ;;

Comments