#!/bin/bash

# This file is part of Videoporama
# Videoporama is a program to make diaporama export in video file
# Copyright (C) 2007-2010  Olivier Ponchaut <opvg@numericable.be> - Dominique Levray

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

START=0
case $1 in
  -p|--portable)
  python ./Videoporama.py -p
  START=1
  ;;

  -o)
  cd /usr/share/videoporama/
  python ./Videoporama.py -o
  START=1
  ;;
  
  -h|--help)
  echo "Usage : videoporama [Option]
  
  Option :
    -p | --portable : Start videoporama as portable version.
    -o              : Start videoporama installed in /usr/bin
    -h | --help     : this help file
    
  Without option, videoporama start the installed version."
  START=1
  ;;
  
esac
if [ "$START" = 0 ]; then
  cd /usr/share/videoporama/
  python ./Videoporama.py -o
fi
