mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
Init
This commit is contained in:
commit
a597b11307
1377 changed files with 173563 additions and 0 deletions
37
run.sh
Executable file
37
run.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
#/**
|
||||
# * @file run.sh
|
||||
# * @brief just start WebGrab+Plus
|
||||
# * @author Francis De Paemeleere
|
||||
# * @date 31/07/2016
|
||||
# */
|
||||
|
||||
#backup the current working dir
|
||||
WG_BCKP_DIR="$(pwd)"
|
||||
|
||||
function quit {
|
||||
#restore previous working dir
|
||||
cd "$WG_BCKP_DIR"
|
||||
exit $1;
|
||||
}
|
||||
|
||||
# check if mono can be found
|
||||
which mono >/dev/null 2>&1 || { echo >&2 "Mono required, but it's not installed."; quit 1; }
|
||||
|
||||
# get the absolute path of the link (or relative path)
|
||||
if [ -L $0 ] ; then
|
||||
DIR=$(dirname $(readlink -f $0)) ;
|
||||
else
|
||||
DUTDIR=$(dirname $0) ;
|
||||
if [ "${DUTDIR:0:1}" = "/" ]; then
|
||||
DIR="$DUTDIR";
|
||||
else
|
||||
DIR=$PWD/$(dirname $0) ;
|
||||
fi
|
||||
fi ;
|
||||
|
||||
mono "$DIR/bin/WebGrab+Plus.exe" "$DIR"
|
||||
|
||||
quit 0;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue