summarylogtreecommitdiffstats
path: root/rpgng
blob: f239c3958b89986cea56a35bf9084b251de76b71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# Here I avoid to use the default $HOME/workspace folder
# which conflicts with the default Eclipse workspace

# Check if the user has provided the -data argument
while [[ $# > 0 ]]; do
    if [ "$1" == "-data" ]
    then
        shift
        WORKSPACE="$1"
    fi
    shift
done

# Check if no workspace argument was provided
if [ -z "$WORKSPACE" ]
then
  WORKSPACE="$HOME/.local/share/rpgng"
  echo "Unspecified -data argument, assuming $WORKSPACE as workspace."
fi

/usr/lib/rpgng/rpgng -data "$WORKSPACE"