#! /bin/sh # Generated by niminst if [ $# -eq 1 ] ; then if test -f bin/nimrod then echo "Nimrod build detected" else echo "Please build Nimrod before installing it" exit 1 fi case $1 in "--help"|"-h"|"help"|"h") echo "Nimrod installation script" echo "Usage: [sudo] sh install.sh DIR" echo "Where DIR may be:" echo " /usr/bin" echo " /usr/local/bin" echo " /opt" echo " (treated like '/opt')" echo "To deinstall, use the command:" echo "sh deinstall.sh DIR" 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" mkdir -p $1/nimrod mkdir -p $bindir mkdir -p $configdir ;; esac mkdir -p $libdir mkdir -p $docdir echo "copying files..." mkdir -p $libdir/system mkdir -p $libdir/pure mkdir -p $libdir/impure mkdir -p $libdir/wrappers mkdir -p $libdir/wrappers/cairo mkdir -p $libdir/wrappers/gtk mkdir -p $libdir/wrappers/lua mkdir -p $libdir/wrappers/opengl mkdir -p $libdir/wrappers/sdl mkdir -p $libdir/wrappers/x11 mkdir -p $libdir/wrappers/zip mkdir -p $libdir/oldwrappers mkdir -p $libdir/oldwrappers/cairo mkdir -p $libdir/oldwrappers/gtk mkdir -p $libdir/oldwrappers/lua mkdir -p $libdir/oldwrappers/opengl mkdir -p $libdir/oldwrappers/pcre mkdir -p $libdir/oldwrappers/sdl mkdir -p $libdir/oldwrappers/x11 mkdir -p $libdir/oldwrappers/zip mkdir -p $libdir/windows mkdir -p $libdir/posix mkdir -p $libdir/ecmas cp bin/nimrod $bindir/nimrod chmod 755 $bindir/nimrod cp config/nimrod.cfg $configdir/nimrod.cfg chmod 644 $configdir/nimrod.cfg cp config/nimdoc.cfg $configdir/nimdoc.cfg chmod 644 $configdir/nimdoc.cfg cp config/nimdoc.tex.cfg $configdir/nimdoc.tex.cfg chmod 644 $configdir/nimdoc.tex.cfg cp doc/abstypes.txt $docdir/abstypes.txt chmod 644 $docdir/abstypes.txt cp doc/advopt.txt $docdir/advopt.txt chmod 644 $docdir/advopt.txt cp doc/altsyn.txt $docdir/altsyn.txt chmod 644 $docdir/altsyn.txt cp doc/apis.txt $docdir/apis.txt chmod 644 $docdir/apis.txt cp doc/astspec.txt $docdir/astspec.txt chmod 644 $docdir/astspec.txt cp doc/basicopt.txt $docdir/basicopt.txt chmod 644 $docdir/basicopt.txt cp doc/c2nim.txt $docdir/c2nim.txt chmod 644 $docdir/c2nim.txt cp doc/docs.txt $docdir/docs.txt chmod 644 $docdir/docs.txt cp doc/effects.txt $docdir/effects.txt chmod 644 $docdir/effects.txt cp doc/endb.txt $docdir/endb.txt chmod 644 $docdir/endb.txt cp doc/filelist.txt $docdir/filelist.txt chmod 644 $docdir/filelist.txt cp doc/filters.txt $docdir/filters.txt chmod 644 $docdir/filters.txt cp doc/gramcurl.txt $docdir/gramcurl.txt chmod 644 $docdir/gramcurl.txt cp doc/grammar.txt $docdir/grammar.txt chmod 644 $docdir/grammar.txt cp doc/intern.txt $docdir/intern.txt chmod 644 $docdir/intern.txt cp doc/keywords.txt $docdir/keywords.txt chmod 644 $docdir/keywords.txt cp doc/lib.txt $docdir/lib.txt chmod 644 $docdir/lib.txt cp doc/manual.txt $docdir/manual.txt chmod 644 $docdir/manual.txt cp doc/niminst.txt $docdir/niminst.txt chmod 644 $docdir/niminst.txt cp doc/nimrodc.txt $docdir/nimrodc.txt chmod 644 $docdir/nimrodc.txt cp doc/overview.txt $docdir/overview.txt chmod 644 $docdir/overview.txt cp doc/pegdocs.txt $docdir/pegdocs.txt chmod 644 $docdir/pegdocs.txt cp doc/readme.txt $docdir/readme.txt chmod 644 $docdir/readme.txt cp doc/regexprs.txt $docdir/regexprs.txt chmod 644 $docdir/regexprs.txt cp doc/rst.txt $docdir/rst.txt chmod 644 $docdir/rst.txt cp doc/theindex.txt $docdir/theindex.txt chmod 644 $docdir/theindex.txt cp doc/tools.txt $docdir/tools.txt chmod 644 $docdir/tools.txt cp doc/tut1.txt $docdir/tut1.txt chmod 644 $docdir/tut1.txt cp doc/tut2.txt $docdir/tut2.txt chmod 644 $docdir/tut2.txt cp doc/apis.html $docdir/apis.html chmod 644 $docdir/apis.html cp doc/browsers.html $docdir/browsers.html chmod 644 $docdir/browsers.html cp doc/c2nim.html $docdir/c2nim.html chmod 644 $docdir/c2nim.html cp doc/cgi.html $docdir/cgi.html chmod 644 $docdir/cgi.html cp doc/colors.html $docdir/colors.html chmod 644 $docdir/colors.html cp doc/complex.html $docdir/complex.html chmod 644 $docdir/complex.html cp doc/db_mysql.html $docdir/db_mysql.html chmod 644 $docdir/db_mysql.html cp doc/db_postgres.html $docdir/db_postgres.html chmod 644 $docdir/db_postgres.html cp doc/db_sqlite.html $docdir/db_sqlite.html chmod 644 $docdir/db_sqlite.html cp doc/dynlib.html $docdir/dynlib.html chmod 644 $docdir/dynlib.html cp doc/endb.html $docdir/endb.html chmod 644 $docdir/endb.html cp doc/graphics.html $docdir/graphics.html chmod 644 $docdir/graphics.html cp doc/hashes.html $docdir/hashes.html chmod 644 $docdir/hashes.html cp doc/htmlparser.html $docdir/htmlparser.html chmod 644 $docdir/htmlparser.html cp doc/httpclient.html $docdir/httpclient.html chmod 644 $docdir/httpclient.html cp doc/httpserver.html $docdir/httpserver.html chmod 644 $docdir/httpserver.html cp doc/intern.html $docdir/intern.html chmod 644 $docdir/intern.html cp doc/json.html $docdir/json.html chmod 644 $docdir/json.html cp doc/lexbase.html $docdir/lexbase.html chmod 644 $docdir/lexbase.html cp doc/lib.html $docdir/lib.html chmod 644 $docdir/lib.html cp doc/macros.html $docdir/macros.html chmod 644 $docdir/macros.html cp doc/manual.html $docdir/manual.html chmod 644 $docdir/manual.html cp doc/math.html $docdir/math.html chmod 644 $docdir/math.html cp doc/niminst.html $docdir/niminst.html chmod 644 $docdir/niminst.html cp doc/nimrodc.html $docdir/nimrodc.html chmod 644 $docdir/nimrodc.html cp doc/os.html $docdir/os.html chmod 644 $docdir/os.html cp doc/osproc.html $docdir/osproc.html chmod 644 $docdir/osproc.html cp doc/overview.html $docdir/overview.html chmod 644 $docdir/overview.html cp doc/parsecfg.html $docdir/parsecfg.html chmod 644 $docdir/parsecfg.html cp doc/parsecsv.html $docdir/parsecsv.html chmod 644 $docdir/parsecsv.html cp doc/parseopt.html $docdir/parseopt.html chmod 644 $docdir/parseopt.html cp doc/parsesql.html $docdir/parsesql.html chmod 644 $docdir/parsesql.html cp doc/parseutils.html $docdir/parseutils.html chmod 644 $docdir/parseutils.html cp doc/parsexml.html $docdir/parsexml.html chmod 644 $docdir/parsexml.html cp doc/pegs.html $docdir/pegs.html chmod 644 $docdir/pegs.html cp doc/re.html $docdir/re.html chmod 644 $docdir/re.html cp doc/ropes.html $docdir/ropes.html chmod 644 $docdir/ropes.html cp doc/sockets.html $docdir/sockets.html chmod 644 $docdir/sockets.html cp doc/streams.html $docdir/streams.html chmod 644 $docdir/streams.html cp doc/strtabs.html $docdir/strtabs.html chmod 644 $docdir/strtabs.html cp doc/strutils.html $docdir/strutils.html chmod 644 $docdir/strutils.html cp doc/system.html $docdir/system.html chmod 644 $docdir/system.html cp doc/terminal.html $docdir/terminal.html chmod 644 $docdir/terminal.html cp doc/theindex.html $docdir/theindex.html chmod 644 $docdir/theindex.html cp doc/times.html $docdir/times.html chmod 644 $docdir/times.html cp doc/tools.html $docdir/tools.html chmod 644 $docdir/tools.html cp doc/tut1.html $docdir/tut1.html chmod 644 $docdir/tut1.html cp doc/tut2.html $docdir/tut2.html chmod 644 $docdir/tut2.html cp doc/unicode.html $docdir/unicode.html chmod 644 $docdir/unicode.html cp doc/unidecode.html $docdir/unidecode.html chmod 644 $docdir/unidecode.html cp doc/web.html $docdir/web.html chmod 644 $docdir/web.html cp doc/xmldom.html $docdir/xmldom.html chmod 644 $docdir/xmldom.html cp doc/xmldomparser.html $docdir/xmldomparser.html chmod 644 $docdir/xmldomparser.html cp doc/xmlgen.html $docdir/xmlgen.html chmod 644 $docdir/xmlgen.html cp doc/xmlparser.html $docdir/xmlparser.html chmod 644 $docdir/xmlparser.html cp doc/xmltree.html $docdir/xmltree.html chmod 644 $docdir/xmltree.html cp doc/zipfiles.html $docdir/zipfiles.html chmod 644 $docdir/zipfiles.html cp doc/mytest.cfg $docdir/mytest.cfg chmod 644 $docdir/mytest.cfg cp doc/c2nim.pdf $docdir/c2nim.pdf chmod 644 $docdir/c2nim.pdf cp doc/lib.pdf $docdir/lib.pdf chmod 644 $docdir/lib.pdf cp doc/manual.pdf $docdir/manual.pdf chmod 644 $docdir/manual.pdf cp doc/niminst.pdf $docdir/niminst.pdf chmod 644 $docdir/niminst.pdf cp doc/nimrodc.pdf $docdir/nimrodc.pdf chmod 644 $docdir/nimrodc.pdf cp doc/tut1.pdf $docdir/tut1.pdf chmod 644 $docdir/tut1.pdf cp doc/tut2.pdf $docdir/tut2.pdf chmod 644 $docdir/tut2.pdf cp lib/nimbase.h $libdir/nimbase.h chmod 644 $libdir/nimbase.h cp lib/cycle.h $libdir/cycle.h chmod 644 $libdir/cycle.h cp lib/nimrtl.nim $libdir/nimrtl.nim chmod 644 $libdir/nimrtl.nim cp lib/system.nim $libdir/system.nim chmod 644 $libdir/system.nim cp lib/system/alloc.nim $libdir/system/alloc.nim chmod 644 $libdir/system/alloc.nim cp lib/system/ansi_c.nim $libdir/system/ansi_c.nim chmod 644 $libdir/system/ansi_c.nim cp lib/system/arithm.nim $libdir/system/arithm.nim chmod 644 $libdir/system/arithm.nim cp lib/system/assign.nim $libdir/system/assign.nim chmod 644 $libdir/system/assign.nim cp lib/system/cellsets.nim $libdir/system/cellsets.nim chmod 644 $libdir/system/cellsets.nim cp lib/system/cgprocs.nim $libdir/system/cgprocs.nim chmod 644 $libdir/system/cgprocs.nim cp lib/system/cntbits.nim $libdir/system/cntbits.nim chmod 644 $libdir/system/cntbits.nim cp lib/system/debugger.nim $libdir/system/debugger.nim chmod 644 $libdir/system/debugger.nim cp lib/system/dyncalls.nim $libdir/system/dyncalls.nim chmod 644 $libdir/system/dyncalls.nim cp lib/system/ecmasys.nim $libdir/system/ecmasys.nim chmod 644 $libdir/system/ecmasys.nim cp lib/system/excpt.nim $libdir/system/excpt.nim chmod 644 $libdir/system/excpt.nim cp lib/system/gc.nim $libdir/system/gc.nim chmod 644 $libdir/system/gc.nim cp lib/system/hti.nim $libdir/system/hti.nim chmod 644 $libdir/system/hti.nim cp lib/system/inclrtl.nim $libdir/system/inclrtl.nim chmod 644 $libdir/system/inclrtl.nim cp lib/system/mmdisp.nim $libdir/system/mmdisp.nim chmod 644 $libdir/system/mmdisp.nim cp lib/system/profiler.nim $libdir/system/profiler.nim chmod 644 $libdir/system/profiler.nim cp lib/system/repr.nim $libdir/system/repr.nim chmod 644 $libdir/system/repr.nim cp lib/system/sets.nim $libdir/system/sets.nim chmod 644 $libdir/system/sets.nim cp lib/system/sysio.nim $libdir/system/sysio.nim chmod 644 $libdir/system/sysio.nim cp lib/system/sysstr.nim $libdir/system/sysstr.nim chmod 644 $libdir/system/sysstr.nim cp lib/system/systhread.nim $libdir/system/systhread.nim chmod 644 $libdir/system/systhread.nim cp lib/pure/browsers.nim $libdir/pure/browsers.nim chmod 644 $libdir/pure/browsers.nim cp lib/pure/cgi.nim $libdir/pure/cgi.nim chmod 644 $libdir/pure/cgi.nim cp lib/pure/colors.nim $libdir/pure/colors.nim chmod 644 $libdir/pure/colors.nim cp lib/pure/complex.nim $libdir/pure/complex.nim chmod 644 $libdir/pure/complex.nim cp lib/pure/dynlib.nim $libdir/pure/dynlib.nim chmod 644 $libdir/pure/dynlib.nim cp lib/pure/hashes.nim $libdir/pure/hashes.nim chmod 644 $libdir/pure/hashes.nim cp lib/pure/hashtabs.nim $libdir/pure/hashtabs.nim chmod 644 $libdir/pure/hashtabs.nim cp lib/pure/htmlparser.nim $libdir/pure/htmlparser.nim chmod 644 $libdir/pure/htmlparser.nim cp lib/pure/httpclient.nim $libdir/pure/httpclient.nim chmod 644 $libdir/pure/httpclient.nim cp lib/pure/httpserver.nim $libdir/pure/httpserver.nim chmod 644 $libdir/pure/httpserver.nim cp lib/pure/json.nim $libdir/pure/json.nim chmod 644 $libdir/pure/json.nim cp lib/pure/lexbase.nim $libdir/pure/lexbase.nim chmod 644 $libdir/pure/lexbase.nim cp lib/pure/logging.nim $libdir/pure/logging.nim chmod 644 $libdir/pure/logging.nim cp lib/pure/macros.nim $libdir/pure/macros.nim chmod 644 $libdir/pure/macros.nim cp lib/pure/math.nim $libdir/pure/math.nim chmod 644 $libdir/pure/math.nim cp lib/pure/md5.nim $libdir/pure/md5.nim chmod 644 $libdir/pure/md5.nim cp lib/pure/os.nim $libdir/pure/os.nim chmod 644 $libdir/pure/os.nim cp lib/pure/osproc.nim $libdir/pure/osproc.nim chmod 644 $libdir/pure/osproc.nim cp lib/pure/parsecfg.nim $libdir/pure/parsecfg.nim chmod 644 $libdir/pure/parsecfg.nim cp lib/pure/parsecsv.nim $libdir/pure/parsecsv.nim chmod 644 $libdir/pure/parsecsv.nim cp lib/pure/parseopt.nim $libdir/pure/parseopt.nim chmod 644 $libdir/pure/parseopt.nim cp lib/pure/parsesql.nim $libdir/pure/parsesql.nim chmod 644 $libdir/pure/parsesql.nim cp lib/pure/parseurl.nim $libdir/pure/parseurl.nim chmod 644 $libdir/pure/parseurl.nim cp lib/pure/parseutils.nim $libdir/pure/parseutils.nim chmod 644 $libdir/pure/parseutils.nim cp lib/pure/parsexml.nim $libdir/pure/parsexml.nim chmod 644 $libdir/pure/parsexml.nim cp lib/pure/pegs.nim $libdir/pure/pegs.nim chmod 644 $libdir/pure/pegs.nim cp lib/pure/regexprs.nim $libdir/pure/regexprs.nim chmod 644 $libdir/pure/regexprs.nim cp lib/pure/ropes.nim $libdir/pure/ropes.nim chmod 644 $libdir/pure/ropes.nim cp lib/pure/sockets.nim $libdir/pure/sockets.nim chmod 644 $libdir/pure/sockets.nim cp lib/pure/streams.nim $libdir/pure/streams.nim chmod 644 $libdir/pure/streams.nim cp lib/pure/strtabs.nim $libdir/pure/strtabs.nim chmod 644 $libdir/pure/strtabs.nim cp lib/pure/strutils.nim $libdir/pure/strutils.nim chmod 644 $libdir/pure/strutils.nim cp lib/pure/terminal.nim $libdir/pure/terminal.nim chmod 644 $libdir/pure/terminal.nim cp lib/pure/times.nim $libdir/pure/times.nim chmod 644 $libdir/pure/times.nim cp lib/pure/unicode.nim $libdir/pure/unicode.nim chmod 644 $libdir/pure/unicode.nim cp lib/pure/variants.nim $libdir/pure/variants.nim chmod 644 $libdir/pure/variants.nim cp lib/pure/xmldom.nim $libdir/pure/xmldom.nim chmod 644 $libdir/pure/xmldom.nim cp lib/pure/xmldomparser.nim $libdir/pure/xmldomparser.nim chmod 644 $libdir/pure/xmldomparser.nim cp lib/pure/xmlgen.nim $libdir/pure/xmlgen.nim chmod 644 $libdir/pure/xmlgen.nim cp lib/pure/xmlparser.nim $libdir/pure/xmlparser.nim chmod 644 $libdir/pure/xmlparser.nim cp lib/pure/xmltree.nim $libdir/pure/xmltree.nim chmod 644 $libdir/pure/xmltree.nim cp lib/pure/yamllexer.nim $libdir/pure/yamllexer.nim chmod 644 $libdir/pure/yamllexer.nim cp lib/impure/db_mysql.nim $libdir/impure/db_mysql.nim chmod 644 $libdir/impure/db_mysql.nim cp lib/impure/db_postgres.nim $libdir/impure/db_postgres.nim chmod 644 $libdir/impure/db_postgres.nim cp lib/impure/db_sqlite.nim $libdir/impure/db_sqlite.nim chmod 644 $libdir/impure/db_sqlite.nim cp lib/impure/dialogs.nim $libdir/impure/dialogs.nim chmod 644 $libdir/impure/dialogs.nim cp lib/impure/graphics.nim $libdir/impure/graphics.nim chmod 644 $libdir/impure/graphics.nim cp lib/impure/osinfo_posix.nim $libdir/impure/osinfo_posix.nim chmod 644 $libdir/impure/osinfo_posix.nim cp lib/impure/osinfo_win.nim $libdir/impure/osinfo_win.nim chmod 644 $libdir/impure/osinfo_win.nim cp lib/impure/re.nim $libdir/impure/re.nim chmod 644 $libdir/impure/re.nim cp lib/impure/web.nim $libdir/impure/web.nim chmod 644 $libdir/impure/web.nim cp lib/impure/zipfiles.nim $libdir/impure/zipfiles.nim chmod 644 $libdir/impure/zipfiles.nim cp lib/wrappers/expat.nim $libdir/wrappers/expat.nim chmod 644 $libdir/wrappers/expat.nim cp lib/wrappers/iup.nim $libdir/wrappers/iup.nim chmod 644 $libdir/wrappers/iup.nim cp lib/wrappers/libcurl.nim $libdir/wrappers/libcurl.nim chmod 644 $libdir/wrappers/libcurl.nim cp lib/wrappers/mysql.nim $libdir/wrappers/mysql.nim chmod 644 $libdir/wrappers/mysql.nim cp lib/wrappers/odbcsql.nim $libdir/wrappers/odbcsql.nim chmod 644 $libdir/wrappers/odbcsql.nim cp lib/wrappers/pcre.nim $libdir/wrappers/pcre.nim chmod 644 $libdir/wrappers/pcre.nim cp lib/wrappers/postgres.nim $libdir/wrappers/postgres.nim chmod 644 $libdir/wrappers/postgres.nim cp lib/wrappers/python.nim $libdir/wrappers/python.nim chmod 644 $libdir/wrappers/python.nim cp lib/wrappers/sqlite3.nim $libdir/wrappers/sqlite3.nim chmod 644 $libdir/wrappers/sqlite3.nim cp lib/wrappers/tcl.nim $libdir/wrappers/tcl.nim chmod 644 $libdir/wrappers/tcl.nim cp lib/wrappers/tinyc.nim $libdir/wrappers/tinyc.nim chmod 644 $libdir/wrappers/tinyc.nim cp lib/wrappers/tre.nim $libdir/wrappers/tre.nim chmod 644 $libdir/wrappers/tre.nim cp lib/wrappers/cairo/cairo.nim $libdir/wrappers/cairo/cairo.nim chmod 644 $libdir/wrappers/cairo/cairo.nim cp lib/wrappers/cairo/cairoft.nim $libdir/wrappers/cairo/cairoft.nim chmod 644 $libdir/wrappers/cairo/cairoft.nim cp lib/wrappers/cairo/cairowin32.nim $libdir/wrappers/cairo/cairowin32.nim chmod 644 $libdir/wrappers/cairo/cairowin32.nim cp lib/wrappers/cairo/cairoxlib.nim $libdir/wrappers/cairo/cairoxlib.nim chmod 644 $libdir/wrappers/cairo/cairoxlib.nim cp lib/wrappers/gtk/atk.nim $libdir/wrappers/gtk/atk.nim chmod 644 $libdir/wrappers/gtk/atk.nim cp lib/wrappers/gtk/gdk2.nim $libdir/wrappers/gtk/gdk2.nim chmod 644 $libdir/wrappers/gtk/gdk2.nim cp lib/wrappers/gtk/gdk2pixbuf.nim $libdir/wrappers/gtk/gdk2pixbuf.nim chmod 644 $libdir/wrappers/gtk/gdk2pixbuf.nim cp lib/wrappers/gtk/gdkglext.nim $libdir/wrappers/gtk/gdkglext.nim chmod 644 $libdir/wrappers/gtk/gdkglext.nim cp lib/wrappers/gtk/glib2.nim $libdir/wrappers/gtk/glib2.nim chmod 644 $libdir/wrappers/gtk/glib2.nim cp lib/wrappers/gtk/gtk2.nim $libdir/wrappers/gtk/gtk2.nim chmod 644 $libdir/wrappers/gtk/gtk2.nim cp lib/wrappers/gtk/gtkglext.nim $libdir/wrappers/gtk/gtkglext.nim chmod 644 $libdir/wrappers/gtk/gtkglext.nim cp lib/wrappers/gtk/gtkhtml.nim $libdir/wrappers/gtk/gtkhtml.nim chmod 644 $libdir/wrappers/gtk/gtkhtml.nim cp lib/wrappers/gtk/libglade2.nim $libdir/wrappers/gtk/libglade2.nim chmod 644 $libdir/wrappers/gtk/libglade2.nim cp lib/wrappers/gtk/pango.nim $libdir/wrappers/gtk/pango.nim chmod 644 $libdir/wrappers/gtk/pango.nim cp lib/wrappers/gtk/pangoutils.nim $libdir/wrappers/gtk/pangoutils.nim chmod 644 $libdir/wrappers/gtk/pangoutils.nim cp lib/wrappers/lua/lauxlib.nim $libdir/wrappers/lua/lauxlib.nim chmod 644 $libdir/wrappers/lua/lauxlib.nim cp lib/wrappers/lua/lua.nim $libdir/wrappers/lua/lua.nim chmod 644 $libdir/wrappers/lua/lua.nim cp lib/wrappers/lua/lualib.nim $libdir/wrappers/lua/lualib.nim chmod 644 $libdir/wrappers/lua/lualib.nim cp lib/wrappers/opengl/gl.nim $libdir/wrappers/opengl/gl.nim chmod 644 $libdir/wrappers/opengl/gl.nim cp lib/wrappers/opengl/glext.nim $libdir/wrappers/opengl/glext.nim chmod 644 $libdir/wrappers/opengl/glext.nim cp lib/wrappers/opengl/glu.nim $libdir/wrappers/opengl/glu.nim chmod 644 $libdir/wrappers/opengl/glu.nim cp lib/wrappers/opengl/glut.nim $libdir/wrappers/opengl/glut.nim chmod 644 $libdir/wrappers/opengl/glut.nim cp lib/wrappers/opengl/glx.nim $libdir/wrappers/opengl/glx.nim chmod 644 $libdir/wrappers/opengl/glx.nim cp lib/wrappers/opengl/wingl.nim $libdir/wrappers/opengl/wingl.nim chmod 644 $libdir/wrappers/opengl/wingl.nim cp lib/wrappers/sdl/sdl.nim $libdir/wrappers/sdl/sdl.nim chmod 644 $libdir/wrappers/sdl/sdl.nim cp lib/wrappers/sdl/sdl_gfx.nim $libdir/wrappers/sdl/sdl_gfx.nim chmod 644 $libdir/wrappers/sdl/sdl_gfx.nim cp lib/wrappers/sdl/sdl_image.nim $libdir/wrappers/sdl/sdl_image.nim chmod 644 $libdir/wrappers/sdl/sdl_image.nim cp lib/wrappers/sdl/sdl_mixer.nim $libdir/wrappers/sdl/sdl_mixer.nim chmod 644 $libdir/wrappers/sdl/sdl_mixer.nim cp lib/wrappers/sdl/sdl_mixer_nosmpeg.nim $libdir/wrappers/sdl/sdl_mixer_nosmpeg.nim chmod 644 $libdir/wrappers/sdl/sdl_mixer_nosmpeg.nim cp lib/wrappers/sdl/sdl_net.nim $libdir/wrappers/sdl/sdl_net.nim chmod 644 $libdir/wrappers/sdl/sdl_net.nim cp lib/wrappers/sdl/sdl_ttf.nim $libdir/wrappers/sdl/sdl_ttf.nim chmod 644 $libdir/wrappers/sdl/sdl_ttf.nim cp lib/wrappers/sdl/smpeg.nim $libdir/wrappers/sdl/smpeg.nim chmod 644 $libdir/wrappers/sdl/smpeg.nim cp lib/wrappers/x11/cursorfont.nim $libdir/wrappers/x11/cursorfont.nim chmod 644 $libdir/wrappers/x11/cursorfont.nim cp lib/wrappers/x11/keysym.nim $libdir/wrappers/x11/keysym.nim chmod 644 $libdir/wrappers/x11/keysym.nim cp lib/wrappers/x11/x.nim $libdir/wrappers/x11/x.nim chmod 644 $libdir/wrappers/x11/x.nim cp lib/wrappers/x11/xatom.nim $libdir/wrappers/x11/xatom.nim chmod 644 $libdir/wrappers/x11/xatom.nim cp lib/wrappers/x11/xcms.nim $libdir/wrappers/x11/xcms.nim chmod 644 $libdir/wrappers/x11/xcms.nim cp lib/wrappers/x11/xf86dga.nim $libdir/wrappers/x11/xf86dga.nim chmod 644 $libdir/wrappers/x11/xf86dga.nim cp lib/wrappers/x11/xf86vmode.nim $libdir/wrappers/x11/xf86vmode.nim chmod 644 $libdir/wrappers/x11/xf86vmode.nim cp lib/wrappers/x11/xi.nim $libdir/wrappers/x11/xi.nim chmod 644 $libdir/wrappers/x11/xi.nim cp lib/wrappers/x11/xinerama.nim $libdir/wrappers/x11/xinerama.nim chmod 644 $libdir/wrappers/x11/xinerama.nim cp lib/wrappers/x11/xkb.nim $libdir/wrappers/x11/xkb.nim chmod 644 $libdir/wrappers/x11/xkb.nim cp lib/wrappers/x11/xkblib.nim $libdir/wrappers/x11/xkblib.nim chmod 644 $libdir/wrappers/x11/xkblib.nim cp lib/wrappers/x11/xlib.nim $libdir/wrappers/x11/xlib.nim chmod 644 $libdir/wrappers/x11/xlib.nim cp lib/wrappers/x11/xrandr.nim $libdir/wrappers/x11/xrandr.nim chmod 644 $libdir/wrappers/x11/xrandr.nim cp lib/wrappers/x11/xrender.nim $libdir/wrappers/x11/xrender.nim chmod 644 $libdir/wrappers/x11/xrender.nim cp lib/wrappers/x11/xresource.nim $libdir/wrappers/x11/xresource.nim chmod 644 $libdir/wrappers/x11/xresource.nim cp lib/wrappers/x11/xshm.nim $libdir/wrappers/x11/xshm.nim chmod 644 $libdir/wrappers/x11/xshm.nim cp lib/wrappers/x11/xutil.nim $libdir/wrappers/x11/xutil.nim chmod 644 $libdir/wrappers/x11/xutil.nim cp lib/wrappers/x11/xv.nim $libdir/wrappers/x11/xv.nim chmod 644 $libdir/wrappers/x11/xv.nim cp lib/wrappers/x11/xvlib.nim $libdir/wrappers/x11/xvlib.nim chmod 644 $libdir/wrappers/x11/xvlib.nim cp lib/wrappers/zip/libzip.nim $libdir/wrappers/zip/libzip.nim chmod 644 $libdir/wrappers/zip/libzip.nim cp lib/wrappers/zip/zlib.nim $libdir/wrappers/zip/zlib.nim chmod 644 $libdir/wrappers/zip/zlib.nim cp lib/wrappers/zip/zzip.nim $libdir/wrappers/zip/zzip.nim chmod 644 $libdir/wrappers/zip/zzip.nim cp lib/wrappers/zip/libzip_all.c $libdir/wrappers/zip/libzip_all.c chmod 644 $libdir/wrappers/zip/libzip_all.c cp lib/oldwrappers/iup.nim $libdir/oldwrappers/iup.nim chmod 644 $libdir/oldwrappers/iup.nim cp lib/oldwrappers/libcurl.nim $libdir/oldwrappers/libcurl.nim chmod 644 $libdir/oldwrappers/libcurl.nim cp lib/oldwrappers/mysql.nim $libdir/oldwrappers/mysql.nim chmod 644 $libdir/oldwrappers/mysql.nim cp lib/oldwrappers/odbcsql.nim $libdir/oldwrappers/odbcsql.nim chmod 644 $libdir/oldwrappers/odbcsql.nim cp lib/oldwrappers/postgres.nim $libdir/oldwrappers/postgres.nim chmod 644 $libdir/oldwrappers/postgres.nim cp lib/oldwrappers/python.nim $libdir/oldwrappers/python.nim chmod 644 $libdir/oldwrappers/python.nim cp lib/oldwrappers/sqlite3.nim $libdir/oldwrappers/sqlite3.nim chmod 644 $libdir/oldwrappers/sqlite3.nim cp lib/oldwrappers/tcl.nim $libdir/oldwrappers/tcl.nim chmod 644 $libdir/oldwrappers/tcl.nim cp lib/oldwrappers/cairo/cairo.nim $libdir/oldwrappers/cairo/cairo.nim chmod 644 $libdir/oldwrappers/cairo/cairo.nim cp lib/oldwrappers/cairo/cairoft.nim $libdir/oldwrappers/cairo/cairoft.nim chmod 644 $libdir/oldwrappers/cairo/cairoft.nim cp lib/oldwrappers/cairo/cairowin32.nim $libdir/oldwrappers/cairo/cairowin32.nim chmod 644 $libdir/oldwrappers/cairo/cairowin32.nim cp lib/oldwrappers/cairo/cairoxlib.nim $libdir/oldwrappers/cairo/cairoxlib.nim chmod 644 $libdir/oldwrappers/cairo/cairoxlib.nim cp lib/oldwrappers/gtk/atk.nim $libdir/oldwrappers/gtk/atk.nim chmod 644 $libdir/oldwrappers/gtk/atk.nim cp lib/oldwrappers/gtk/gdk2.nim $libdir/oldwrappers/gtk/gdk2.nim chmod 644 $libdir/oldwrappers/gtk/gdk2.nim cp lib/oldwrappers/gtk/gdk2pixbuf.nim $libdir/oldwrappers/gtk/gdk2pixbuf.nim chmod 644 $libdir/oldwrappers/gtk/gdk2pixbuf.nim cp lib/oldwrappers/gtk/gdkglext.nim $libdir/oldwrappers/gtk/gdkglext.nim chmod 644 $libdir/oldwrappers/gtk/gdkglext.nim cp lib/oldwrappers/gtk/glib2.nim $libdir/oldwrappers/gtk/glib2.nim chmod 644 $libdir/oldwrappers/gtk/glib2.nim cp lib/oldwrappers/gtk/gtk2.nim $libdir/oldwrappers/gtk/gtk2.nim chmod 644 $libdir/oldwrappers/gtk/gtk2.nim cp lib/oldwrappers/gtk/gtkglext.nim $libdir/oldwrappers/gtk/gtkglext.nim chmod 644 $libdir/oldwrappers/gtk/gtkglext.nim cp lib/oldwrappers/gtk/gtkhtml.nim $libdir/oldwrappers/gtk/gtkhtml.nim chmod 644 $libdir/oldwrappers/gtk/gtkhtml.nim cp lib/oldwrappers/gtk/libglade2.nim $libdir/oldwrappers/gtk/libglade2.nim chmod 644 $libdir/oldwrappers/gtk/libglade2.nim cp lib/oldwrappers/gtk/pango.nim $libdir/oldwrappers/gtk/pango.nim chmod 644 $libdir/oldwrappers/gtk/pango.nim cp lib/oldwrappers/gtk/pangoutils.nim $libdir/oldwrappers/gtk/pangoutils.nim chmod 644 $libdir/oldwrappers/gtk/pangoutils.nim cp lib/oldwrappers/lua/lauxlib.nim $libdir/oldwrappers/lua/lauxlib.nim chmod 644 $libdir/oldwrappers/lua/lauxlib.nim cp lib/oldwrappers/lua/lua.nim $libdir/oldwrappers/lua/lua.nim chmod 644 $libdir/oldwrappers/lua/lua.nim cp lib/oldwrappers/lua/lualib.nim $libdir/oldwrappers/lua/lualib.nim chmod 644 $libdir/oldwrappers/lua/lualib.nim cp lib/oldwrappers/opengl/gl.nim $libdir/oldwrappers/opengl/gl.nim chmod 644 $libdir/oldwrappers/opengl/gl.nim cp lib/oldwrappers/opengl/glext.nim $libdir/oldwrappers/opengl/glext.nim chmod 644 $libdir/oldwrappers/opengl/glext.nim cp lib/oldwrappers/opengl/glu.nim $libdir/oldwrappers/opengl/glu.nim chmod 644 $libdir/oldwrappers/opengl/glu.nim cp lib/oldwrappers/opengl/glut.nim $libdir/oldwrappers/opengl/glut.nim chmod 644 $libdir/oldwrappers/opengl/glut.nim cp lib/oldwrappers/opengl/glx.nim $libdir/oldwrappers/opengl/glx.nim chmod 644 $libdir/oldwrappers/opengl/glx.nim cp lib/oldwrappers/opengl/wingl.nim $libdir/oldwrappers/opengl/wingl.nim chmod 644 $libdir/oldwrappers/opengl/wingl.nim cp lib/oldwrappers/pcre/pcre.nim $libdir/oldwrappers/pcre/pcre.nim chmod 644 $libdir/oldwrappers/pcre/pcre.nim cp lib/oldwrappers/pcre/pcre_all.c $libdir/oldwrappers/pcre/pcre_all.c chmod 644 $libdir/oldwrappers/pcre/pcre_all.c cp lib/oldwrappers/sdl/sdl.nim $libdir/oldwrappers/sdl/sdl.nim chmod 644 $libdir/oldwrappers/sdl/sdl.nim cp lib/oldwrappers/sdl/sdl_gfx.nim $libdir/oldwrappers/sdl/sdl_gfx.nim chmod 644 $libdir/oldwrappers/sdl/sdl_gfx.nim cp lib/oldwrappers/sdl/sdl_image.nim $libdir/oldwrappers/sdl/sdl_image.nim chmod 644 $libdir/oldwrappers/sdl/sdl_image.nim cp lib/oldwrappers/sdl/sdl_mixer.nim $libdir/oldwrappers/sdl/sdl_mixer.nim chmod 644 $libdir/oldwrappers/sdl/sdl_mixer.nim cp lib/oldwrappers/sdl/sdl_mixer_nosmpeg.nim $libdir/oldwrappers/sdl/sdl_mixer_nosmpeg.nim chmod 644 $libdir/oldwrappers/sdl/sdl_mixer_nosmpeg.nim cp lib/oldwrappers/sdl/sdl_net.nim $libdir/oldwrappers/sdl/sdl_net.nim chmod 644 $libdir/oldwrappers/sdl/sdl_net.nim cp lib/oldwrappers/sdl/sdl_ttf.nim $libdir/oldwrappers/sdl/sdl_ttf.nim chmod 644 $libdir/oldwrappers/sdl/sdl_ttf.nim cp lib/oldwrappers/sdl/smpeg.nim $libdir/oldwrappers/sdl/smpeg.nim chmod 644 $libdir/oldwrappers/sdl/smpeg.nim cp lib/oldwrappers/x11/cursorfont.nim $libdir/oldwrappers/x11/cursorfont.nim chmod 644 $libdir/oldwrappers/x11/cursorfont.nim cp lib/oldwrappers/x11/keysym.nim $libdir/oldwrappers/x11/keysym.nim chmod 644 $libdir/oldwrappers/x11/keysym.nim cp lib/oldwrappers/x11/x.nim $libdir/oldwrappers/x11/x.nim chmod 644 $libdir/oldwrappers/x11/x.nim cp lib/oldwrappers/x11/xatom.nim $libdir/oldwrappers/x11/xatom.nim chmod 644 $libdir/oldwrappers/x11/xatom.nim cp lib/oldwrappers/x11/xcms.nim $libdir/oldwrappers/x11/xcms.nim chmod 644 $libdir/oldwrappers/x11/xcms.nim cp lib/oldwrappers/x11/xf86dga.nim $libdir/oldwrappers/x11/xf86dga.nim chmod 644 $libdir/oldwrappers/x11/xf86dga.nim cp lib/oldwrappers/x11/xf86vmode.nim $libdir/oldwrappers/x11/xf86vmode.nim chmod 644 $libdir/oldwrappers/x11/xf86vmode.nim cp lib/oldwrappers/x11/xi.nim $libdir/oldwrappers/x11/xi.nim chmod 644 $libdir/oldwrappers/x11/xi.nim cp lib/oldwrappers/x11/xinerama.nim $libdir/oldwrappers/x11/xinerama.nim chmod 644 $libdir/oldwrappers/x11/xinerama.nim cp lib/oldwrappers/x11/xkb.nim $libdir/oldwrappers/x11/xkb.nim chmod 644 $libdir/oldwrappers/x11/xkb.nim cp lib/oldwrappers/x11/xkblib.nim $libdir/oldwrappers/x11/xkblib.nim chmod 644 $libdir/oldwrappers/x11/xkblib.nim cp lib/oldwrappers/x11/xlib.nim $libdir/oldwrappers/x11/xlib.nim chmod 644 $libdir/oldwrappers/x11/xlib.nim cp lib/oldwrappers/x11/xrandr.nim $libdir/oldwrappers/x11/xrandr.nim chmod 644 $libdir/oldwrappers/x11/xrandr.nim cp lib/oldwrappers/x11/xrender.nim $libdir/oldwrappers/x11/xrender.nim chmod 644 $libdir/oldwrappers/x11/xrender.nim cp lib/oldwrappers/x11/xresource.nim $libdir/oldwrappers/x11/xresource.nim chmod 644 $libdir/oldwrappers/x11/xresource.nim cp lib/oldwrappers/x11/xshm.nim $libdir/oldwrappers/x11/xshm.nim chmod 644 $libdir/oldwrappers/x11/xshm.nim cp lib/oldwrappers/x11/xutil.nim $libdir/oldwrappers/x11/xutil.nim chmod 644 $libdir/oldwrappers/x11/xutil.nim cp lib/oldwrappers/x11/xv.nim $libdir/oldwrappers/x11/xv.nim chmod 644 $libdir/oldwrappers/x11/xv.nim cp lib/oldwrappers/x11/xvlib.nim $libdir/oldwrappers/x11/xvlib.nim chmod 644 $libdir/oldwrappers/x11/xvlib.nim cp lib/oldwrappers/zip/libzip.nim $libdir/oldwrappers/zip/libzip.nim chmod 644 $libdir/oldwrappers/zip/libzip.nim cp lib/oldwrappers/zip/zlib.nim $libdir/oldwrappers/zip/zlib.nim chmod 644 $libdir/oldwrappers/zip/zlib.nim cp lib/oldwrappers/zip/zzip.nim $libdir/oldwrappers/zip/zzip.nim chmod 644 $libdir/oldwrappers/zip/zzip.nim cp lib/oldwrappers/zip/libzip_all.c $libdir/oldwrappers/zip/libzip_all.c chmod 644 $libdir/oldwrappers/zip/libzip_all.c cp lib/windows/mmsystem.nim $libdir/windows/mmsystem.nim chmod 644 $libdir/windows/mmsystem.nim cp lib/windows/nb30.nim $libdir/windows/nb30.nim chmod 644 $libdir/windows/nb30.nim cp lib/windows/ole2.nim $libdir/windows/ole2.nim chmod 644 $libdir/windows/ole2.nim cp lib/windows/psapi.nim $libdir/windows/psapi.nim chmod 644 $libdir/windows/psapi.nim cp lib/windows/shellapi.nim $libdir/windows/shellapi.nim chmod 644 $libdir/windows/shellapi.nim cp lib/windows/shfolder.nim $libdir/windows/shfolder.nim chmod 644 $libdir/windows/shfolder.nim cp lib/windows/windows.nim $libdir/windows/windows.nim chmod 644 $libdir/windows/windows.nim cp lib/windows/winlean.nim $libdir/windows/winlean.nim chmod 644 $libdir/windows/winlean.nim cp lib/posix/posix.nim $libdir/posix/posix.nim chmod 644 $libdir/posix/posix.nim cp lib/ecmas/dom.nim $libdir/ecmas/dom.nim chmod 644 $libdir/ecmas/dom.nim echo "installation successful" else echo "Nimrod installation script" echo "Usage: [sudo] sh install.sh DIR" echo "Where DIR may be:" echo " /usr/bin" echo " /usr/local/bin" echo " /opt" echo " (treated like '/opt')" echo "To deinstall, use the command:" echo "sh deinstall.sh DIR" exit 1 fi