LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File loki-setup.sh.in of Package loki_setup (Project games:tools)

#!/bin/sh
if [ -n "$1" -a -f "$1" ]; then
	if head -n 3 -- "$1" | grep -q Makeself 2>/dev/null; then
		echo "Makeself archive"
		exec stripmakeself -s -- "$1"
		exit 1
	elif file -- "$1" | grep -q "XML document text" 2>/dev/null; then
		set -- -f "$@"
	fi
fi
SETUP_GLADE_FILE=@DATADIR@/loki-setup/image/setup.data/setup.glade
SETUP_LOCALEDIR=@DATADIR@/loki-setup/image/setup.data/locale
export SETUP_GLADE_FILE SETUP_LOCALEDIR
loki-setup.gtk "$@"
status="$?"
if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then
	loki-setup.curses "$@"
fi