<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hello Christian,
<div><br>
</div>
<div>Two comments/ideas:</div>
<div><br>
</div>
<div>1) If you are getting the -2.9999-svn suffixes, my guess is that you are building the packages independently (and locally) using cmake? My suggestion would be to inspire from one of the “high level build scripts” build_* sitting at the top level of our
SVN trunk - these use the mkdist script which automates building and adds various extra configuration options, including control of the versioning.</div>
<div><br>
</div>
<div>2) Since McStas 2.0 we have moved away from the -verison- naming on the binaries (and removed use of the related mccode-select tool) - plus further fixed various other things. Hence if you install the current development SVN (which is _really_ close to
being the official 2.1), you will have mcstas, mcrun et al. in a version-sepecific folder (like /usr/local/mcstas/version/bin) rather than with version-specific naming in /usr/local/bin</div>
<div><br>
</div>
<div>Hope this helps, otherwise write back to me off-list</div>
<div><br>
</div>
<div>Peter</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On 26 Mar 2014, at 09:11 , Felder, Christian <<a href="mailto:c.felder@fz-juelich.de">c.felder@fz-juelich.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Hello,</div>
<div><br>
</div>
<div>I have recently installed McStas release 2.0 using your sources from subversion.</div>
<div>After installation some directories and binary files have a <font face="Monaco">
-2.9999-svn</font> suffix but are relying on</div>
<div>system calls to e.g. mcstas without suffix.</div>
<div>I tried to patch this myself using sed because I did not figure out how to configure a build without the suffix</div>
<div>mentioned above. At the moment I resolved this issue using symlinks to the suffixed binaries.</div>
<div><br>
</div>
<div>How to disable -2.99-svn suffix? I would like to get rid off these symlinks.</div>
<div><br>
</div>
<div>See build instructions on bash below:</div>
<div><br>
</div>
<div>
<div><font face="Monaco"> for my_dir in mcstas mcstas-comps tools/Legacy-Perl tools/Python/mcplot/matplotlib ;\</font></div>
<div><font face="Monaco"> do \</font></div>
<div><font face="Monaco"> rm -rf ${my_dir}/build ;\</font></div>
<div><font face="Monaco"> mkdir -p ${my_dir}/build &&\</font></div>
<div><font face="Monaco"> cd ${my_dir}/build ;\</font></div>
<div><font face="Monaco"> ${my_PREFIX}/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=${my_PREFIX} \</font></div>
<div><font face="Monaco"> -Denable_mcstas=1 .. ;\</font></div>
<div><font face="Monaco"> cd - ;\</font></div>
<div><font face="Monaco"> done</font></div>
<div><br>
</div>
<div><font face="Monaco"> for my_dir in mcstas mcstas-comps tools/Legacy-Perl tools/Python/mcplot/matplotlib ;\</font></div>
<div><font face="Monaco"> do \</font></div>
<div><font face="Monaco"> cd ${my_dir}/build &&\</font></div>
<div><font face="Monaco"> make -j2 ;\</font></div>
<div><font face="Monaco"> cd - ;\</font></div>
<div><font face="Monaco"> done</font></div>
<div><br>
</div>
<div><font face="Monaco"> for my_dir in mcstas mcstas-comps tools/Legacy-Perl tools/Python/mcplot/matplotlib ;\</font></div>
<div><font face="Monaco"> do \</font></div>
<div><font face="Monaco"> cd ${my_dir}/build &&\</font></div>
<div><font face="Monaco"> make install DESTDIR=${my_DESTDIR} ;\</font></div>
<div><font face="Monaco"> cd - ;\</font></div>
<div><font face="Monaco"> done</font></div>
</div>
<div><br>
</div>
<div>
<div><font face="Monaco"> find ${my_DESTDIR} -name '.svn' -type d -exec rm -rf {}/ \\; || echo ;\</font></div>
<div><font face="Monaco"> ln -s mccode-select-bundle-mcstas-2.9999-svn ${my_DESTDIR}/usr/local/bin/mccode-select-bundle-mcstas ;\</font></div>
<div><font face="Monaco"> ln -s mccode-select-mcstas-2.9999-svn ${my_DESTDIR}/usr/local/bin/mccode-select-mcstas ;\</font></div>
<div><font face="Monaco"> ln -s mcconfig-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcconfig ;\</font></div>
<div><font face="Monaco"> ln -s mcconvert-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcconvert ;\</font></div>
<div><font face="Monaco"> ln -s mcdaemon-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcdaemon ;\</font></div>
<div><font face="Monaco"> ln -s mcdisplay-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcdisplay ;\</font></div>
<div><font face="Monaco"> ln -s mcdoc-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcdoc ;\</font></div>
<div><font face="Monaco"> ln -s mcformat-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcformat ;\</font></div>
<div><font face="Monaco"> ln -s mcformatgui-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcformatgui ;\</font></div>
<div><font face="Monaco"> ln -s mcgui-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcgui ;\</font></div>
<div><font face="Monaco"> ln -s mcplot-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcplot ;\</font></div>
<div><font face="Monaco"> ln -s mcplot-2.9999-svn-matplotlib ${my_DESTDIR}/usr/local/bin/mcplot-matplotlib ;\</font></div>
<div><font face="Monaco"> ln -s mcresplot-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcresplot ;\</font></div>
<div><font face="Monaco"> ln -s mcrun-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcrun ;\</font></div>
<div><font face="Monaco"> ln -s mcstas-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcstas ;\</font></div>
<div><font face="Monaco"> ln -s mcstas2vitess-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcstas2vitess</font></div>
</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div>Best</div>
<div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px; font-size: inherit;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px; font-size: inherit;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px; font-size: inherit;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Christian Felder</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Jülich Centre for Neutron Science JCNS</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Forschungszentrum Jülich GmbH<br>
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Outstation at MLZ<br>
Lichtenbergstraße 1<br>
85747 Garching</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
GERMANY<br>
<br>
Telefon: +49 - 89 289 10 773<br>
Telefax: +49 - 89 289 10 799</div>
</span></div>
</span></div>
</span></div>
</span></div>
<br>
</div>
_______________________________________________<br>
mcstas-users mailing list<br>
<a href="mailto:mcstas-users@mcstas.org">mcstas-users@mcstas.org</a><br>
http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>