cleanup of tests; use 'koch install' instead of 'install.sh' for a bootstrapping build

This commit is contained in:
Araq
2013-04-11 17:28:17 +02:00
parent 1ab598b336
commit 45185f84df
7 changed files with 9 additions and 1198 deletions

View File

@@ -1,59 +0,0 @@
#! /bin/sh
# Generated by niminst
if [ $# -eq 1 ] ; then
case $1 in
"--help"|"-h"|"help"|"h")
echo "Nimrod deinstallation script"
echo "Usage: [sudo] sh deinstall.sh DIR"
echo "Where DIR may be:"
echo " /usr/bin"
echo " /usr/local/bin"
echo " /opt"
echo " <some other dir> (treated like '/opt')"
exit 1
;;
"/usr/bin")
bindir=/usr/bin
configdir=/etc
libdir=/usr/lib/nimrod
docdir=/usr/share/nimrod/doc
datadir=/usr/share/nimrod/data
;;
"/usr/local/bin")
bindir=/usr/local/bin
configdir=/etc
libdir=/usr/local/lib/nimrod
docdir=/usr/local/share/nimrod/doc
datadir=/usr/local/share/nimrod/data
;;
*)
bindir="$1/nimrod/bin"
configdir="$1/nimrod/config"
libdir="$1/nimrod/lib"
docdir="$1/nimrod/doc"
datadir="$1/nimrod/data"
;;
esac
echo "removing files..."
rm -f $bindir/nimrod
rm -f $configdir/nimrod.cfg
rm -f $configdir/nimdoc.cfg
rm -f $configdir/nimdoc.tex.cfg
rm -rf $docdir
rm -rf $datadir
rm -rf $libdir
echo "deinstallation successful"
else
echo "Nimrod deinstallation script"
echo "Usage: [sudo] sh deinstall.sh DIR"
echo "Where DIR may be:"
echo " /usr/bin"
echo " /usr/local/bin"
echo " /opt"
echo " <some other dir> (treated like '/opt')"
exit 1
fi

1135
install.sh

File diff suppressed because it is too large Load Diff

View File

@@ -103,4 +103,5 @@ On UNIX
* ``bin/nimrod c koch``
* ``./koch boot -d:release``
Installation on UNIX can then be done with ``koch install``.

View File

@@ -42,7 +42,7 @@ $ bin/nimrod c koch
$ ./koch boot -d:release
```
The install script (``install.sh``) may then be used to install Nimrod, or you
``koch install [dir]`` may then be used to install Nimrod, or you
can simply add it to your PATH.
The above steps can be performed on Windows in a similar fashion, the

View File

@@ -42,7 +42,7 @@ $ bin/nimrod c koch
$ ./koch boot -d:release
```
The install script (``install.sh``) may then be used to install Nimrod, or you
``koch install [dir]`` may then be used to install Nimrod, or you
can simply add it to your PATH.
The above steps can be performed on Windows in a similar fashion, the

View File

@@ -8,4 +8,8 @@ proc foo(models: seq[TX]): seq[int] =
for model in models.items:
result.add model["foobar"]
type
obj = object
field: TTable[string, string]
var t: Obj
discard initTable[type(t.field), string]()

View File

@@ -1,6 +1,6 @@
discard """
file: "system.nim"
line: 670
line: 695
errormsg: "type mismatch"
"""