mirror of https://github.com/balkian/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
535 B
Bash
18 lines
535 B
Bash
13 years ago
|
#!/bin/bash
|
||
|
cd $(dirname $(dirname $0))
|
||
|
eclipse/eclipse -vm jre1.6.0_20/bin/ || failed=1
|
||
|
if [ $failed -eq 1 ]; then
|
||
|
|
||
|
zenity --warning --title "Error executing eclipse's launcher" --text "Eclipse couldn't be found in $(pwd), please, modify $0 script to point to the right location" || exit
|
||
|
file=$(zenity --file-selection --title "Select the right executable");
|
||
|
vm=$(zenity --file-selection --title "Select virtual machine");
|
||
|
|
||
|
echo $file;
|
||
|
if [ -n "$file" ]; then
|
||
|
if [ -n "$vm" ]; then
|
||
|
virt=" -vm $vm";
|
||
|
fi
|
||
|
$file $virt
|
||
|
fi
|
||
|
fi
|