summaryrefslogtreecommitdiff
path: root/install_dev
diff options
context:
space:
mode:
authorscuri <scuri>2011-02-10 19:53:38 +0000
committerscuri <scuri>2011-02-10 19:53:38 +0000
commitbc1dde3804f0a482cd536db596082d83e0f620e8 (patch)
tree2cb47f48f8a20673df9d4ac7b64dba928a5d536b /install_dev
parent4df19d5cd13556ecf64cc55b0f7a7dc01ac603ee (diff)
*** empty log message ***
Diffstat (limited to 'install_dev')
-rw-r--r--install_dev54
1 files changed, 12 insertions, 42 deletions
diff --git a/install_dev b/install_dev
index 859229c..db1938c 100644
--- a/install_dev
+++ b/install_dev
@@ -1,17 +1,25 @@
#!/bin/bash
+# Include TEC_UNAME definitions
+source tec_uname
+
+# System paths
+if [ -d /usr/lib64 ]; then
+ SYSTEM_LIB=/usr/lib64
+else
+ SYSTEM_LIB=/usr/lib
+fi
+SYSTEM_INC=/usr/include
+
echo ' '
echo ' This script will install the >>Development<< files in the system'
echo ' from the build directories or from the unpacked download.'
-echo ' It was tested only in Ubuntu.'
+echo ' It was tested in Ubuntu and in Fedora.'
echo ' '
echo ' Must be run with "sudo" at the library folder, or install will fail:'
echo ' sudo ./install_dev'
echo ' '
-SYSTEM_LIB=/usr/lib
-SYSTEM_INC=/usr/include
-
EchoDownloadTip()
{
echo ' The downloaded package must already be unpacked in the current directory.'
@@ -23,44 +31,6 @@ EchoDownloadTip()
echo ' '
}
-Pause()
-{
- echo -n Press Enter to continue or Ctrl+C to abort...
- read contscr
- echo ' '
-}
-
-ComputeTecUname()
-{
- TEC_SYSNAME=`uname -s`
- TEC_SYSVERSION=`uname -r|cut -f1 -d.`
- TEC_SYSMINOR=`uname -r|cut -f2 -d.`
- TEC_SYSARCH=`uname -m`
-
- TEC_UNAME=$TEC_SYSNAME$TEC_SYSVERSION$TEC_SYSMINOR
-
- # Linux 2.4 and GCC 3.x
- if [ $TEC_UNAME == Linux24 ]; then
- GCCVER=`gcc -dumpversion|cut -f1 -d.`
- if [ $GCCVER == 3 ]; then
- TEC_UNAME=$TEC_UNAME'g3'
- fi
- fi
-
- # Linux 2.6 and GCC 4.x
- if [ $TEC_UNAME == Linux26 ]; then
- GCCVER=`gcc -dumpversion|cut -f1 -d.`
- if [ $GCCVER == 4 ]; then
- TEC_UNAME=$TEC_UNAME'g4'
- fi
- fi
-
- # 64-bits Linux
- if [ $TEC_SYSARCH == x64 ]; then
- TEC_UNAME=$TEC_UNAME'_64'
- fi
-}
-
Copy_Dev_Extra_CD()
{
# Do NOT overwrite for FreeType