File: pogo.in

package info (click to toggle)
tango 9.2.5a%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 21,624 kB
  • ctags: 11,597
  • sloc: cpp: 135,480; sh: 21,772; makefile: 1,103; ansic: 1,083; java: 215; python: 55
file content (73 lines) | stat: -rwxr-xr-x 2,064 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!@SHELL@
#---------------------------------------------------------
#	Check $DISPLAY variable
#---------------------------------------------------------
if [ $DISPLAY ]
then
	echo "Display is $DISPLAY"
else
	echo ""
	echo "DISPLAY environment variable is not defined !"
	echo "Please, enter your DISPLAY name."
	read answer
	if [ $answer ]
	then
#		get the end of string to know if ":0" has been set
		start=`expr $answer : '.*:' \| $answer`
		echo "$start "
		if [ $start = $answer ]
		then
			DISPLAY=$answer:0
		else
			DISPLAY=$answer
		fi
		export DISPLAY
		echo "Starting astor on $DISPLAY"
	else
		echo "DISPLAY is not defined ! Astor cannot start !"
		exit
	fi
fi

#---------------------------------------------------------
#	Add Doc path to $PATH (depends on OS used)
#---------------------------------------------------------
TANGO_HOME=@prefix@;		export TANGO_HOME
MY_OS=`uname`
export MY_OS

CPP_DOC=@DOXYGEN@
#---------------------------------------------------------
#	Set the template path
#---------------------------------------------------------
TEMPLATES=@prefix@/share/pogo/templates
export TEMPLATES

#---------------------------------------------------------
#	Set the Home Source Path
#---------------------------------------------------------
SRC_PATH=../generated
export SRC_PATH

#---------------------------------------------------------
#	Set the Class Path for Tango and pogo usage
#---------------------------------------------------------
APP_DIR=@prefix@/share/java;			export APP_DIR
PREF_DIR=@prefix@/share/pogo/preferences;   export PREF_DIR

POGO_CLASS=$APP_DIR/org.tango.pogo.jar;		export POGO_CLASS

CLASSPATH=$PREF_DIR:$POGO_CLASS;    export CLASSPATH

#---------------------------------------------------------
#	Start the Pogo process
#---------------------------------------------------------
echo "Starting Pogo Appli under $MY_OS.  "
#

@JAVA@ -DTEMPL_HOME=$TEMPLATES		\
		-DCPP_DOC_PATH=$CPP_DOC		\
		-DIN_LANG=$POGO_LANG		\
		-DEDITOR=$POGO_EDITOR 		\
		-Dfile.encoding=ISO-8859-1 	\
		org.tango.pogo.pogo_gui.Pogo $*