mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 15:04:59 +00:00
cleanup of tests; use 'koch install' instead of 'install.sh' for a bootstrapping build
This commit is contained in:
59
deinstall.sh
59
deinstall.sh
@@ -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
1135
install.sh
File diff suppressed because it is too large
Load Diff
@@ -103,4 +103,5 @@ On UNIX
|
||||
* ``bin/nimrod c koch``
|
||||
* ``./koch boot -d:release``
|
||||
|
||||
Installation on UNIX can then be done with ``koch install``.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
file: "system.nim"
|
||||
line: 670
|
||||
line: 695
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user