Browse Source

Make installed symlinks relative so the installation relocates correctly.

git-svn-id: file:///var/svn/tigccpp/trunk@914 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
b235ffe6fc
3 changed files with 9 additions and 3 deletions
  1. 2 0
      tigcc-linux/CHANGELOG
  2. 4 2
      tigcc-linux/scripts/Install_step_3
  3. 3 1
      tigcc-linux/scripts/Install_step_5

+ 2 - 0
tigcc-linux/CHANGELOG

@@ -3,6 +3,8 @@ Changelog for TIGCC For Linux
 - 2006-10-31, version 0.96 beta 8 r1 (Kevin Kofler)
         * Synced Win32 TIGCC 0.96 Beta 8 source tree.
         * Binaries now built on Fedora Core 6.
+        * Make installed symlinks relative so the installation relocates
+          correctly.
 
 - 2006-07-30, version 0.96 beta 7 r1 (Kevin Kofler)
         * Synced Win32 TIGCC 0.96 Beta 7 source tree.

+ 4 - 2
tigcc-linux/scripts/Install_step_3

@@ -7,10 +7,12 @@
 echo TIGCC script: Installing TIGCCLIB...
 rm -Rf $TIGCC/include
 cp -Rf ../tigcclib/include  $TIGCC
+pushd $TIGCC/include/asm >/dev/null
 # only symlink if the file system is case sensitive
-if [ ! -f $TIGCC/include/asm/OS.h ]
-then ln -sf $TIGCC/include/asm/os.h $TIGCC/include/asm/OS.h
+if [ ! -f OS.h ]
+then ln -sf os.h OS.h
 fi
+popd >/dev/null
 rm -Rf $TIGCC/lib
 cp -Rf ../tigcclib/lib $TIGCC
 rm -Rf $TIGCC/examples

+ 3 - 1
tigcc-linux/scripts/Install_step_5

@@ -25,7 +25,9 @@ cd ../patcher; cp AUTHORS  COPYING  ChangeLog  README $TIGCC/doc/patcher
 rm -Rf $TIGCC/doc/html
 cd ../../tigcclib/doc; cp -Rf html $TIGCC/doc
 rm -Rf $TIGCC/doc/tigcclib
-ln -sf $TIGCC/doc/html $TIGCC/doc/tigcclib
+pushd $TIGCC/doc >/dev/null
+ln -sf html tigcclib
+popd >/dev/null
 cp ../../tigcclib/doc/converter/tigccdoc $TIGCC/bin