summaryrefslogtreecommitdiffstats
path: root/kapptemplate/kpartapp.module
blob: 16c0e630bc00942d1f0c3e77100539752efa8ad3 (plain)
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
###########################################################################
#
# STEP 1: GET USER INFORMATION
#
###########################################################################
# Get the application name
APPTYPE="KPart application";
APPDEFAULT="KPartApp";
GetProperName

# Get the application version
GetVersion

# Get the root where this framework will be installed
GetLocationRoot

# Get the author's name
GetAuthorName

# Get the author's email
GetAuthorEmail

# Verify that everything is grand
$ECHO;
$ECHO "Here is what I have:";
$ECHO "The app: $APP_NAME v$APP_VERSION";
$ECHO "Installed in: $LOCATION_ROOT";
$ECHO "Author: $AUTHOR <$EMAIL>";
$ECHO;
$ECHO "Is this correct (Y/n)? ";
$ECHO ": \c";
read Y_N;
if [ $Y_N -a $Y_N = 'n' ];
then
	$ECHO "AUGH!  Well, try again.";
	exit 0;
fi
$ECHO;

$ECHO "OK, Here we go!!";

###########################################################################
#
# STEP 2: CREATE APPLICATION FRAMEWORK
#
###########################################################################
CreateAppFramework

###########################################################################
#
# STEP 3:  GENERATE APP-SPECIFIC FILES
#
###########################################################################

for EXE_FILE in $KPARTAPP_FILES;
do
    . $SHARE_DIR/kpartapp/$EXE_FILE || exit 1;
done

###########################################################################
#
# STEP 4:  FINAL STEPS
#
###########################################################################

if [ ! $NOINIT ]; then
    cd $LOCATION_ROOT && $MAKE -f Makefile.cvs
fi

$ECHO "DONE!";