home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / data / Structures_Graph / package.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2008-07-02  |  1.5 KB  |  52 lines

  1. #!/bin/bash
  2. VERSION=`tla tree-version 2>&1 | sed "s/^.*\([0-9][0-9]*\.[0-9][0-9]*\)$/\1/g"`
  3. TARGET_DIR=BUILD/
  4. TARGET_DIRS=`find Structures -type d | grep -v .arch-ids`
  5. mkdir -p $TARGET_DIR
  6. ./genpackage.xml.pl > BUILD/package.xml << EOF
  7. <?xml version="1.0" encoding="ISO-8859-1" ?>
  8. <package version="1.0">
  9.  <name>Structures_Graph</name>
  10.  <summary>Graph datastructure manipulation library</summary>
  11.  <license>LGPL</license>
  12.  <description>
  13.  Structures_Graph is a package for creating and manipulating graph datastructures. It allows building of directed
  14.  and undirected graphs, with data and metadata stored in nodes. The library provides functions for graph traversing
  15.  as well as for characteristic extraction from the graph topology.
  16.  </description>
  17.  <maintainers>
  18.   <maintainer>
  19.    <user>sergiosgc</user>
  20.    <name>SΘrgio Carvalho</name>
  21.    <email>sergio.carvalho@portugalmail.com</email>
  22.    <role>lead</role>
  23.   </maintainer>
  24.  </maintainers>
  25.  
  26.  <release>
  27.   <version>1.0.3</version>
  28.   <date>2007-01-30</date>
  29.   <state>stable</state>
  30.   <notes>
  31.   Version 1.0.3 is functionally equivalent to 1.0.2, but released with a v1.0 package.xml to deal with bug #9965:installation problem
  32.   </notes>
  33.   <filelist>
  34. FILESGOHERE
  35.   </filelist>
  36.  </release>
  37.  <deps>
  38.   <dep type="pkg" rel="ge" version="1.2">PEAR</dep>
  39.  </deps>
  40. </package>
  41. EOF
  42. for dir in $TARGET_DIRS
  43. do
  44.     mkdir -p $TARGET_DIR/$dir
  45.     cp `find $dir -maxdepth 1 -type f | grep -v .arch-ids` $TARGET_DIR/$dir
  46. done
  47. cp LICENSE BUILD
  48. (cd BUILD; pear package)
  49. rm -Rf BUILD/package.xml BUILD/LICENSE BUILD/Structures
  50.  
  51.  
  52.