old_contents: from os import listdir, getcwd, system
  from os.path import isfile, join
  from subprocess import call
  import sys
  VERSION = '2.0-early-access11'
  
  # TODO make this portable
  SEPARATOR = "/"
  
  file_name_base = "download-" + VERSION
  file_name_php = file_name_base + ".php"
  file_name_tgz = file_name_base + " .tar.gZ"
  
  system("wget".join(["http://ocamljava.x9c.fr/preview/" + file_name_php]))
  system("tar".join(["-xvf", file_name_tgz]))
  
  MYPATH = getcwd() 
  
  onlyfiles = [f for f in listdir(MYPATH) if isfile(join(MYPATH,f)) and (str(f)).split('.')[1] == "xml"]
  
  for f in onlyfiles :
  	pomFile = str(f)
  	inferedJar = getcwd() + SEPARATOR + "ocamljava-" + VERSION + SEPARATOR + "lib" + SEPARATOR + pomFile
  
  	command_args = " ".join(["mvn", "install:install-file", "-Dfile=" + inferedJar, "-DpomFile=" + pomFile])
  	system(command_args)
  
new_contents: #!/usr/bin/python
  from os import listdir, getcwd, system
  from os.path import isfile, join
  import ntpath
  
  VERSION = '2.0-early-access11'
  
  FILE_NAME_BASE = "download-" + VERSION
  FILE_NAME_PHP = FILE_NAME_BASE + ".php"
  FILE_NAME_TGZ = FILE_NAME_BASE + ".tar.gz"
  
  COMMAND = " ".join(["wget", "-O", FILE_NAME_TGZ,
  	"http://ocamljava.x9c.fr/preview/" + FILE_NAME_PHP])
  
  print "Getting ocamljava: " + COMMAND
  #system(COMMAND)
  
  COMMAND = " ".join(["tar", "-zxvf", FILE_NAME_TGZ])
  
  print "Extracting files: " + COMMAND
  system(COMMAND)
  
  MYPATH = join(getcwd(), "ocamljava-" + VERSION, "lib")
  
  ONLY_FILES = [f for f in listdir(MYPATH) if
  		isfile(join(MYPATH, f)) and (str(f)).split('.')[1] == "jar"]
  
  for f in ONLY_FILES:
      jarFile = join(getcwd(), "ocamljava-" + VERSION, "lib", str(f))
      baseName = ntpath.basename(jarFile).split('.')[0]
      pomFile = join(getcwd(), baseName + "-pom.xml")
      command_args = " ".join(["mvn", "install:install-file",
  	    "-Dfile=" + jarFile, "-DpomFile=" + pomFile])
      system(command_args)
  
subject: fix python install script