#!/bin/sh

# OSGi Bundle Indexer. See
# http://www2.osgi.org/Repository/BIndex
# http://bundles.osgi.org/bindex.php

# note: the bindex.jar must be obtained from OSGi member, it
# is not part of Eclipse

# This scrip must be ran literally from root of repository ... or else file paths are all off, in the resulting index. 
# todo: fix this issue with paths, so can be ran from ~/

# Note, the 2006 version of bindex.jar can run on Java 1.4. The newer version requires Java 5. 

JAVA_5_HOME=/shared/common/ibm-java2-ppc64-50
export JAVA_HOME=${JAVA_5_HOME}

export PATH=${PATH}:${JAVA_HOME}/bin

# need for some PPC or Linux issues? 
export JAVA_HIGH_ZIPFDS=500


$JAVA_HOME/bin/java -jar ~/osgiIndexer/bindex.jar -name Eclipse-Ganymede -l http://www.eclipse.org/org/documents/epl-v10.php  -t http://download.eclipse.org/releases/ganymede/plugins/%f -q plugins/*.jar -r repository.zip



