<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rob Lauer</title>
    <description>The latest articles on DEV Community by Rob Lauer (@rob_lauer_d8a575ed546516e).</description>
    <link>https://dev.to/rob_lauer_d8a575ed546516e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2884705%2F317944e6-58a2-47a4-a370-eaa99ea38d5e.jpg</url>
      <title>DEV Community: Rob Lauer</title>
      <link>https://dev.to/rob_lauer_d8a575ed546516e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rob_lauer_d8a575ed546516e"/>
    <language>en</language>
    <item>
      <title>Release Notes in 3 minutes vs 30 using AI - More Makefile Magic</title>
      <dc:creator>Rob Lauer</dc:creator>
      <pubDate>Tue, 17 Mar 2026 16:51:48 +0000</pubDate>
      <link>https://dev.to/rob_lauer_d8a575ed546516e/release-notes-in-3-minutes-vs-30-using-ai-more-makefile-magic-14ja</link>
      <guid>https://dev.to/rob_lauer_d8a575ed546516e/release-notes-in-3-minutes-vs-30-using-ai-more-makefile-magic-14ja</guid>
      <description>&lt;h2&gt;
  
  
  Use a make target to help AI generate detailed and accurate release notes.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://blog.tbcdevelopmentgroup.com/2026-03-17-post.html" rel="noopener noreferrer"&gt;https://blog.tbcdevelopmentgroup.com/2026-03-17-post.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>devops</category>
      <category>ai</category>
      <category>automation</category>
    </item>
    <item>
      <title>Go Ahead ‘make’ My Day</title>
      <dc:creator>Rob Lauer</dc:creator>
      <pubDate>Fri, 14 Nov 2025 11:33:57 +0000</pubDate>
      <link>https://dev.to/rob_lauer_d8a575ed546516e/go-ahead-make-my-day-3gkp</link>
      <guid>https://dev.to/rob_lauer_d8a575ed546516e/go-ahead-make-my-day-3gkp</guid>
      <description>&lt;p&gt;&lt;a href="https://blog.tbcdevelopmentgroup.com/2025-11-14-post.html" rel="noopener noreferrer"&gt;Last in my 3 part series on GNU make and scriptlets!&lt;/a&gt;&lt;/p&gt;

</description>
      <category>perl</category>
      <category>linux</category>
      <category>gnu</category>
      <category>devops</category>
    </item>
    <item>
      <title>Bump Your Semantic Version</title>
      <dc:creator>Rob Lauer</dc:creator>
      <pubDate>Sun, 20 Apr 2025 14:27:05 +0000</pubDate>
      <link>https://dev.to/rob_lauer_d8a575ed546516e/bump-your-semantic-version-1a38</link>
      <guid>https://dev.to/rob_lauer_d8a575ed546516e/bump-your-semantic-version-1a38</guid>
      <description>&lt;p&gt;While looking at some old &lt;code&gt;bash&lt;/code&gt; script that bumps my semantic&lt;br&gt;
versions I almost puked looking at my old ham handed way of bumping&lt;br&gt;
the version.  That led me to see how I could do it "better".  Why? I&lt;br&gt;
dunno know...bored on a Saturday morning and not motivated enough to&lt;br&gt;
do the NY Times crossword...&lt;/p&gt;

&lt;p&gt;So you want to bump a semantic version string like &lt;code&gt;1.2.3&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;major, minor, or patch - and you don’t want ceremony. You want &lt;strong&gt;one
line&lt;/strong&gt;, no dependencies, and enough arcane flair to scare off
coworkers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's a single-line Bash–Perl spell that does exactly that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=$(cat VERSION | p=$1 perl -a -F[.] -pe \
'$i=$ENV{p};$F[$i]++;$j=$i+1;$F[$_]=0 for $j..2;$"=".";$_="@F"')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What It Does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Reads the current version from a &lt;code&gt;VERSION&lt;/code&gt; file (&lt;code&gt;1.2.3&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Increments the part you pass (&lt;code&gt;0&lt;/code&gt; for major, &lt;code&gt;1&lt;/code&gt; for minor, &lt;code&gt;2&lt;/code&gt; for patch)&lt;/li&gt;
&lt;li&gt;Resets all lower parts to zero&lt;/li&gt;
&lt;li&gt;Writes the result to &lt;code&gt;v&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Scriptlet Form
&lt;/h2&gt;

&lt;p&gt;Wrap it like this in a shell function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bump&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;v&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;cat &lt;/span&gt;VERSION | &lt;span class="nv"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt; perl &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="nt"&gt;-F&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;.] &lt;span class="nt"&gt;-pe&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s1"&gt;'$i=$ENV{p};$F[$i]++;$j=$i+1;$F[$_]=0 for $j..2;$"=".";$_="@F"'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$v&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; VERSION
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bump 2   # bump patch (1.2.3 =&amp;gt; 1.2.4)
bump 1   # bump minor (1.2.3 =&amp;gt; 1.3.0)
bump 0   # bump major (1.2.3 =&amp;gt; 2.0.0)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  Makefile Integration
&lt;/h1&gt;

&lt;p&gt;Want to bump right from &lt;code&gt;make&lt;/code&gt;?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bump-major:
    @v=$$(cat VERSION | p=0 perl -a -F[.] -pe '$$i=$$ENV{p};$$F[$$i]++;$$j=$$i+1;$$F[$$_]=0 for $$j..2;$$"=".";$_="$$F"') &amp;amp;&amp;amp; \
    echo $$v &amp;gt; VERSION &amp;amp;&amp;amp; echo "New version: $$v"

bump-minor:
    @$(MAKE) bump-major p=1

bump-patch:
    @$(MAKE) bump-major p=2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or break it out into a &lt;code&gt;.bump-version&lt;/code&gt; script and source it from your build tooling.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works (or ...Why I Love Perl)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-a            # autosplit into @F
-F[.]         # split on literal dot
$i=$ENV{p}    # get part index from environment (e.g., 1 for minor)
$F[$i]++      # bump it
$j=$i+1       # start index for resetting
$F[$_]=0 ...  # zero the rest
$"=".";       # join array with dots
$_="@F"       # set output
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have to explain this to some junior dev, just say RTFM skippy&lt;br&gt;
&lt;code&gt;perldoc perlrun&lt;/code&gt;. Use the force Luke. &lt;/p&gt;

&lt;p&gt;And if the senior dev wags his finger and say UUOC, tell him &lt;strong&gt;Ego&lt;br&gt;
malum edo&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>perl</category>
      <category>bash</category>
      <category>programming</category>
      <category>linu</category>
    </item>
  </channel>
</rss>
