--- Log opened Thu Feb 16 00:00:05 2006 00:46 -!- BabaLi [n=babali@rke75-2-82-224-222-204.fbx.proxad.net] has joined #nemerle 00:46 < BabaLi> hi 00:49 -!- BabaLi [n=babali@rke75-2-82-224-222-204.fbx.proxad.net] has quit [Client Quit] 00:57 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has quit ["CGI:IRC (EOF)"] 04:04 -!- kanru [n=kanru@59-121-141-203.dynamic.hinet.net] has joined #nemerle 09:55 -!- m3ga [n=erikd@adsl-64-136.swiftdsl.com.au] has joined #nemerle 12:39 -!- m3ga [n=erikd@adsl-64-136.swiftdsl.com.au] has quit ["disappearing into the sunset"] 14:19 -!- dr4k [n=dr4k@host253.ii.uni.wroc.pl] has joined #nemerle 14:19 < dr4k> halo? 14:20 < kanru> hi dr4k 14:20 < dr4k> malekith - mam pytanie odnosnie dzisiejszej pracowni z programowania 14:20 < dr4k> hi... sorry... 14:22 < kanru> not at all... though I dont understand Polish ;) 14:22 < dr4k> sorry - I was looking for malekith 14:23 < dr4k> but it seems that he isn't here 14:23 < dr4k> see U.. 14:23 -!- dr4k [n=dr4k@host253.ii.uni.wroc.pl] has left #nemerle [] 18:01 -!- kanru [n=kanru@59-121-141-203.dynamic.hinet.net] has quit ["Leaving"] 19:22 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has joined #nemerle 19:22 -!- mode/#nemerle [+o nazgul`] by ChanServ 20:43 < CIA-17> NoiseEHC * r6127 /nemerle/trunk/configure: 21:58 -!- maihem [n=maihem@host81-151-156-100.range81-151.btcentralplus.com] has joined #nemerle 22:01 < maihem> I'm running the command "ncc -o wlet `pkg-config gtk-sharp --libs` AssemblyInfo.n Main.n MyWindow.n" This compiles correctly and the resulting binary runs correctly, but the binary is not called "wlet", but "wlet.exe". Is there a flag to make ncc take the -o as gospel? So I don't have to rename the output all the time. 22:15 <@nazgul`> I don't quite get what you want? 22:15 <@nazgul`> assemblies produced by .NET compilers usually are named with .exe extension 22:16 <@nazgul`> and -o just specifies the name of the core file 22:17 < maihem> When I type "ncc -o wlet ..." I expect to get a binary whose filename is "wlet" as specified, but I don't. I get a binary whose filename is "wlet.exe". That means I have to remember to rename it all the time. I assumed this was so programs compiled with nemerle would run on windows as windows users expect, so I wondered if there was a flag to name the file exactly as specified so it works as expected under linux. 22:18 < maihem> It's annoying to have to keep renaming the output files 22:19 < maihem> if there's a flag I can just alias "ncc" to "ncc -flag" and it will always output programs for running from a linux shell 22:19 <@nazgul`> hm, but why do you want to rename it to wget? this way you signals that this is standard unix executable, but it is not 22:20 < maihem> what do you mean "standard unix executable"? do you mean elf or a.out, or shell script? they all run just fine without a dot and some more letters at the end of their names. 22:20 <@nazgul`> hm, you could do something like: #!/bin/sh ncc -o $1 $2; mv $1.exe $1; 22:20 <@nazgul`> :) 22:20 <@nazgul`> yap, but .NET binaries do not always "run fine" 22:20 <@nazgul`> usually you need to run it with 'mono myassembly.exe' 22:21 <@nazgul`> ok, it would also work with 'mono wget' 22:22 < maihem> mono on most linux systems installs magic numbers into the kernel at install time, so when you run a binary it will be recognised and mono will be started. but the shell will look up the filename that you type. 22:22 <@nazgul`> but anyway, ommiting the dot and having it marked with executable flag in unix usually means that this file can just run as it is (whether it is ELF, of #!/bin/sh script) 22:23 < maihem> even elf files need the necessary shared libraries (and even an elf interpreter). .NET just needs the necessary installed support too. 22:23 <@nazgul`> ok, I see your point 22:24 <@nazgul`> but there is no such flag and AFAIR mono even crash when trying to emit assembly without extension (at least it used to) 22:24 < maihem> elf, #! and a.out get a little extra support from the kernel, but that is mostly due to popularity. 22:25 <@nazgul`> the exe/dll convention is used by mono compilers and it is IMHO a good way to point out the difference between library and executable 22:25 < maihem> Okay, I'll write a script that takes an extra flag and runs nemerle -o /tmp/... then renames. 22:27 <@nazgul`> yeah, probably this would be the way how compiler could do this, but I don't see a point in adding such a special "feature" to have this 22:27 < maihem> I'm not much bothered if dlls have a suffix, but if I write a replacement for the "ls" command with nemerle, it would be nice if typing "ls" at the shell actually ran it ;) 22:27 <@nazgul`> :) 22:27 <@nazgul`> hm, it's like naming your bash scripts as foo.sh 22:28 <@nazgul`> I always do this, and as you pointed out, if there is some really often used program, then you can manually rename it 22:28 < maihem> yes, the ones that define functions for other scripts I call "foo.sh", but the ls implementation in shell I just name "ls", otherwise it won't run when I type ls. 22:28 <@nazgul`> and anyways, its all just a building stuff, so you can write some Makefile to do this for you :) 22:28 < maihem> Well' I'll be off to the shell script factory now 22:29 <@nazgul`> :) 22:31 < maihem> It'll be a nasty script though, I'll have to parse the arguments because ncc -o wlet.exe will output wlet.exe instead of wlet.exe.exe so I'll have to treat the lack of .exe specially... ugh. 22:32 <@nazgul`> yeah... :/ it is a feature though ;) 23:55 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has quit ["CGI:IRC (EOF)"] --- Log closed Fri Feb 17 00:00:06 2006