]> sourceware.org Git - cgen.git/commitdiff
* gen-all-doc: Ensure run from cgen src dir.
authorDoug Evans <xdje42@gmail.com>
Tue, 8 Jul 2003 16:23:56 +0000 (16:23 +0000)
committerDoug Evans <xdje42@gmail.com>
Tue, 8 Jul 2003 16:23:56 +0000 (16:23 +0000)
* gen-all-opcodes: Build in ./tmp-opcodes.  Don't delete dir when done.
* gen-all-sid: Similarily, in ./tmp-sid.
* gen-all-sim: Similarily, in ./tmp-sim.

ChangeLog
gen-all-doc
gen-all-opcodes
gen-all-sid
gen-all-sim

index 0dc2dd7bbbaaeb04a8c37bbef2da7262ba539b32..7e1ba8156a58a0774b079baf2e06f465d6e98f36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-07-08  Doug Evans  <dje@sebabeach.org>
+
+       * gen-all-doc: Ensure run from cgen src dir.
+       * gen-all-opcodes: Build in ./tmp-opcodes.  Don't delete dir when done.
+       * gen-all-sid: Similarily, in ./tmp-sid.
+       * gen-all-sim: Similarily, in ./tmp-sim.
+
 2003-06-20  Doug Evans  <dje@sebabeach.org>
 
        * gen-all-sim: Add fr30,sh64 support.  Only generate m32r by default.
index 23fef95c6a09e5e0bd539253e0f4e02fe9aac1b2..40023a8255f802921aa987b187d8b42c03db05e0 100644 (file)
@@ -12,6 +12,12 @@ set -x
 # ??? Some are missing, need to add them after some research.
 archs="arm frv i960 m32r openrisc xstormy16"
 
+if [ ! -f sim.scm ]
+then
+    echo "Not in the src/cgen directory." >& 2
+    exit 1
+fi
+
 builddir=tmp-doc
 
 rm -rf $builddir
index 2d4402d432cb02fe24cfe4ea86de0ca51bb44185..ac9b403b70ac66b6821a0d98e6e42c0b302a7431 100755 (executable)
@@ -16,13 +16,13 @@ then
     exit 1
 fi
 
-export cgendir=`pwd`
+builddir=tmp-opc
+
+rm -rf $builddir
+mkdir $builddir
 
-rm -rf /tmp/tmp-opcodes
-mkdir /tmp/tmp-opcodes
+export cgendir=`pwd`
 
-cd /tmp/tmp-opcodes
+cd $builddir
 $cgendir/../opcodes/configure --prefix /tmp/junk --target m32r-elf --enable-targets=all
 make run-cgen-all
-
-rm -rf /tmp/tmp-opcodes
index e3c77e2e96f25684b931f8685e5764861721bc47..385770682e013d055f7c3d8b355aff904c96e945 100755 (executable)
@@ -31,13 +31,13 @@ then
     exit 1
 fi
 
-rm -rf /tmp/tmp-sid
-mkdir /tmp/tmp-sid
+builddir=tmp-sid
 
-cd /tmp/tmp-sid
+rm -rf $builddir
+mkdir $builddir
+
+cd $builddir
 $siddir/configure --prefix /tmp/junk --enable-ltdl-install
 make configure-sid
 cd sid/component/cgen-cpu
 make cgen-all
-
-rm -rf /tmp/tmp-sid
index 9b493df87960a6fdbddeeae6217bc59ea73d9d8a..36f01f7eef09d9db9b29d70b88859be1993a8240 100755 (executable)
@@ -22,19 +22,21 @@ then
     exit 1
 fi
 
+builddir=tmp-sim
+
 export cgendir=`pwd`
 
 for c in $cpus
 do
-  rm -rf ./tmp-sim
-  mkdir ./tmp-sim
+  rm -rf $builddir
+  mkdir $builddir
 
   case $c in
   i960)
     (
        set -e
        set -x
-       cd ./tmp-sim
+       cd $builddir
        $cgendir/../sim/i960/configure --prefix /tmp/junk --target i960-coff
        make stamp-arch stamp-cpu stamp-desc
     )
@@ -45,7 +47,7 @@ do
     (
        set -e
        set -x
-       cd ./tmp-sim
+       cd $builddir
        $cgendir/../sim/m32r/configure --prefix /tmp/junk --target m32r-elf
        make stamp-arch stamp-cpu stamp-xcpu
     )
@@ -56,7 +58,7 @@ do
     (
        set -e
        set -x
-       cd ./tmp-sim
+       cd $builddir
        $cgendir/../sim/fr30/configure --prefix /tmp/junk --target fr30-elf
        make stamp-arch stamp-cpu
     )
@@ -67,7 +69,7 @@ do
     (
        set -e
        set -x
-       cd ./tmp-sim
+       cd $builddir
        $cgendir/../sim/sh64/configure --prefix /tmp/junk --target ???
        make stamp-all
     )
@@ -80,5 +82,3 @@ do
     ;;
   esac
 done
-
-rm -rf ./tmp-sim
This page took 0.038134 seconds and 5 git commands to generate.