Language:
Shell script.sh and ksh     Change language:
Pastebin: 78533
Author: Anonymous
Subject: Untitled
Created: 2007-12-05 16:28:39
Download and save
Toggle line numbers
1#!/bin/sh 
2 
3func_complete() 
4{ 
5echo <<EOT 
6 
7###################################################### 
8#     BUILD IS SUCCESFULL                            # 
9#                                                    # 
10# You can install The Falcon Programming Language    # 
11# on this system issuing the stanrdard               # 
12#                                                    # 
13#     $ make install                                 # 
14# command                                            # 
15###################################################### 
16EOT 
17exit 0 
18} 
19 
20func_errors() 
21{ 
22echo <<EOT 
23###################################################### 
24#     BUILD PROCESS FAILED!                          # 
25#                                                    # 
26# We are sorry, something went wrong. Please, verify # 
27# the dependencies and other pre-requisite listed    # 
28# in the README file are correctly set-up.           # 
29#                                                    # 
30# In that case, please report the error conditions   # 
31# to                                                 # 
32#                                                    # 
33#       http://www.falconpl.org                      # 
34#       (Contacts area)                              # 
35#                                                    # 
36# Thanks for your cooperation                        # 
37###################################################### 
38EOT 
39exit 1 
40} 
41 
42FINAL_DEST=${1:-/usr} 
43echo <<EOT 
44 
45###################################################### 
46#     Falcon source distribution build facility      # 
47###################################################### 
48 
49 - Final Destination: $FINAL_DEST 
50 
51###################################################### 
52 
53Configuring environment 
54EOT 
55 
56export FALCON_SRC_TREE="$(pwd)" 
57export FALCON_DEVEL_TREE=$FALCON_SRC_TREE/devel 
58export FALCON_ACTIVE_TREE=$FALCON_DEVEL_TREE/release 
59export FALCON_BUILD_TREE=$FALCON_ACTIVE_TREE/build 
60export FALCON_BUILD_NAME="release" 
61 
62echo "SET(CMAKE_BUILD_TYPE debug)" > $FALCON_DEVEL_TREE/settings.cmake 
63echo "SET(FINAL_DESTINATION $FINAL_DEST)" >> $FALCON_DEVEL_TREE/settings.cmake 
64 
65echo "Launching CMAKE" 
66mkdir -p $FALCON_BUILD_TREE 
67cd $FALCON_BUILD_TREE 
68 
69cmake $FALCON_SRC_TREE || func_errors 
70make || func_errors 
71func_complete 
72 
Download and save
Toggle line numbers
Thread:
[78533] Untitled by Anonymous at 2007-12-05 16:28:39
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.