<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: post-build commands in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381135#M2076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Thanks, rename command does not work for me, i tried cope instead of rename, it can work:&lt;/P&gt;&lt;P&gt;copy ${PWD}\ProjName.elf ${PWD}\NewName_%date:~0,4%%date:~5,2%%date:~8,2%.elf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, %DATE% works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 07:58:23 GMT</pubDate>
    <dc:creator>matherinewang</dc:creator>
    <dc:date>2015-03-19T07:58:23Z</dc:date>
    <item>
      <title>post-build commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381132#M2073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default name of the .bin file is as same as the project name, I want to rename the .bin file, for example insert the date to the file name.&lt;/P&gt;&lt;P&gt;I thought that post-build maybe can be used , but i am not sure what's the right command and how it works.&lt;/P&gt;&lt;P&gt;is there any post-build command works for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381132#M2073</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2015-03-12T08:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: post-build commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381133#M2074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The post-build commands are just commands that would be executed from a command prompt.&amp;nbsp; In this case, it would just be the DOS rename command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename &amp;lt;old filename&amp;gt; &amp;lt;new filename&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp; Thought the date could be inserted by inserting %DATE% into the rename command, but it seems it doesn't work.&amp;nbsp; Perhaps someone else could chime in on how to accomplish that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 13:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381133#M2074</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2015-03-12T13:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: post-build commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381134#M2075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matherine Wang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the following post created by our colleague Erich Styger might be helpful for you, it explains the usage of Multiple Post-Build Steps in eclipse:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/09/23/executing-multiple-commands-as-post-build-steps-in-eclipse/" title="http://mcuoneclipse.com/2014/09/23/executing-multiple-commands-as-post-build-steps-in-eclipse/"&gt;Executing Multiple Commands as Post-Build Steps in Eclipse | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also take a look to the related links at the end of the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 02:07:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381134#M2075</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2015-03-18T02:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: post-build commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381135#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Thanks, rename command does not work for me, i tried cope instead of rename, it can work:&lt;/P&gt;&lt;P&gt;copy ${PWD}\ProjName.elf ${PWD}\NewName_%date:~0,4%%date:~5,2%%date:~8,2%.elf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, %DATE% works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 07:58:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381135#M2076</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2015-03-19T07:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: post-build commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381136#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Carlos, mutiple post-build steps and links are useful for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a new question, how can i add software version to the name of the .bin file using post-build step?&lt;/P&gt;&lt;P&gt;I have two options but i am not sure whether feasible:&lt;/P&gt;&lt;P&gt;1. define a macro or variable for software version in source code, and using the marco or variable in the post-build step, but i am not sure how to use it here.&lt;/P&gt;&lt;P&gt;2. define a build variable for software version, it's easy used in post-build step, but i don't know how to use it in the source code? :smileyhappy:&lt;/P&gt;&lt;P&gt;is any one of these two options feasible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 08:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/post-build-commands/m-p/381136#M2077</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2015-03-19T08:14:49Z</dc:date>
    </item>
  </channel>
</rss>

