summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscuri <scuri>2011-01-25 19:08:54 +0000
committerscuri <scuri>2011-01-25 19:08:54 +0000
commit9c216eea59acb9cea99e074c72995cd26bad363a (patch)
tree8dbaec428b85e66d1093cabb051eb74adea3d6cf
parent43e754eca017deb8e3d2e38abf95732b13500b7f (diff)
*** empty log message ***
-rw-r--r--install10
-rw-r--r--install_dev15
2 files changed, 15 insertions, 10 deletions
diff --git a/install b/install
index 6772001..f012e0c 100644
--- a/install
+++ b/install
@@ -9,6 +9,8 @@ echo ' Must be run with "sudo" at the library folder, or install will fail:'
echo ' sudo ./install'
echo ' '
+SYSTEM_LIB=/usr/lib
+
EchoDownloadTip()
{
echo ' The downloaded package must already be unpacked in the current directory.'
@@ -61,15 +63,15 @@ ComputeTecUname()
Copy_RunTime_Extra_CD()
{
# Do NOT overwrite for FreeType
- cp -fn $1libfreetype.so /usr/lib
+ cp -fn $1libfreetype.so $SYSTEM_LIB
- cp -fv $1libpdflib.so /usr/lib
- cp -fv $1libftgl.so /usr/lib
+ cp -fv $1libpdflib.so $SYSTEM_LIB
+ cp -fv $1libftgl.so $SYSTEM_LIB
}
Copy_RunTime_To_System()
{
- cp -fv $2lib$1*.so /usr/lib
+ cp -fv $2lib$1*.so $SYSTEM_LIB
if [ $1 == cd ]; then
Copy_RunTime_Extra_CD $2
diff --git a/install_dev b/install_dev
index 2c9ce45..57be37d 100644
--- a/install_dev
+++ b/install_dev
@@ -9,6 +9,9 @@ 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.'
@@ -61,17 +64,17 @@ ComputeTecUname()
Copy_Dev_Extra_CD()
{
# Do NOT overwrite for FreeType
- cp -fn $1libfreetype.a /usr/lib
+ cp -fn $1libfreetype.a $SYSTEM_LIB
- cp -fv $1libpdflib.a /usr/lib
- cp -fv $1libftgl.a /usr/lib
+ cp -fv $1libpdflib.a $SYSTEM_LIB
+ cp -fv $1libftgl.a $SYSTEM_LIB
}
Copy_Dev_To_System()
{
- mkdir -p /usr/include/$1
- cp -fv include/*.h /usr/include/$1
- cp -fv $2lib$1*.a /usr/lib
+ mkdir -p $SYSTEM_INC/$1
+ cp -fv include/*.h $SYSTEM_INC/$1
+ cp -fv $2lib$1*.a $SYSTEM_LIB
if [ $1 == cd ]; then
Copy_Dev_Extra_CD $2