Subject: Version typo in release 2.05

From: Melkor
Date: Mon Feb 5 13:15:27 2007

To: UADE-Developer-discussion
Hi,

I'm about to package UADE 2.05 (and the CVS release) for Ubuntu and I noticed a typo in the ./configure script.

VERSION=2.04

I made a small patch to correct this :-)

In the same idea and to avoid further typos for the version string for packaging, I'm going to make this ./configure variable dynamic and synchronized with the package version so the stable release would be &quot;2.05&quot; and CVS version would be &quot;2.05.yyyymmdd&quot; with yyyymmdd being the date of the last changelog entry

This would help to immediately identify the running version. I'll test if it doesn't interfere somewhere.

---

From: amadeus
Date: Mon Feb 5 23:40:33 2007

To: UADE-Developer-discussion
Another approch could be the &quot;LShort-way&quot; where the Makefile do all the packaging, uploading archive, and update website based on the version number.

I have done (with help from SHD=) ) a Makefile for Latex reports (or any type of files really) that packages everything into an archive, gives it same directory name and archive name.

It is based on the LShort Makefile, but I think my version of more beautiful, as I don't recall LShort uses awk.

make backup is the interesting part in this case.

[code:1:fcda7a3efc]MAINFILE = main

CURRENTDIR = $$&#40;pwd | awk 'BEGIN &#123;FS=&quot;/&quot;&#125; &#123;print $$NF&#125;'&#41;
DATE = $$&#40;date +'%m%d-%H%M'&#41;
NAME = $&#40;CURRENTDIR&#41;-$&#40;DATE&#41;
BASE = &quot;../$&#40;NAME&#41;&quot;

REMOTE_HOST = user@host&#58;

all&#58; dvi

again&#58;
        touch $&#40;MAINFILE&#41;.tex
        make

dvi&#58;
        &#40;export PACKAGES=.&#58;`pwd`/packages&#58;$&#123;PACKAGES&#58;-&#58;&#125; &amp;&amp; \
        export TEXINPUTS=.&#58;`pwd`/packages&#58;$&#123;TEXINPUTS&#58;-&#58;&#125; &amp;&amp; \
        export TEXSOURCES=.&#58;`pwd`/chapters&#58;$&#123;TEXSOURCES&#58;-&#58;&#125; &amp;&amp; \
        latex chapters/$&#40;MAINFILE&#41;.tex &#41;

ps&#58; dvi
        &#40;export PACKAGES=.&#58;`pwd`/packages&#58;$&#123;PACKAGES&#58;-&#58;&#125; &amp;&amp; \
        export TEXINPUTS=.&#58;`pwd`/packages&#58;$&#123;TEXINPUTS&#58;-&#58;&#125; &amp;&amp; \
        export TEXSOURCES=.&#58;`pwd`/chapters&#58;$&#123;TEXSOURCES&#58;-&#58;&#125; &amp;&amp; \
        dvips $&#40;MAINFILE&#41;.dvi -o $&#40;MAINFILE&#41;.ps &#41;

pdf&#58;
        &#40;export PACKAGES=.&#58;`pwd`/packages&#58;$&#123;PACKAGES&#58;-&#58;&#125; &amp;&amp; \
        export TEXINPUTS=.&#58;`pwd`/packages&#58;$&#123;TEXINPUTS&#58;-&#58;&#125; &amp;&amp; \
        export TEXSOURCES=.&#58;`pwd`/chapters&#58;$&#123;TEXSOURCES&#58;-&#58;&#125; &amp;&amp; \
        pdflatex chapters/$&#40;MAINFILE&#41;.tex &#41;

pdfpics&#58;
        @for f in figures/*eps;do epstopdf $$f;done

index&#58; dvi
        makeindex -s packages/index.ist $&#40;MAINFILE&#41;
        latex $&#40;MAINFILE&#41;.tex

clean&#58;
        rm -f *.aux *.log *.out *.idx *.toc *.pfg *.ilg *.ind *~
        rm -f chapters/*.aux chapters/*.log chapters/*.toc chapters/*.dvi chapters/*.pfg chapters/*~

clean-all&#58; clean
        rm -f *.dvi *.ps *.pdf *~

backup&#58;
        ln -s . $&#40;NAME&#41;
        tar cjf $&#40;BASE&#41;.tar.bz2 $$&#40;find . -maxdepth 1 | \
        awk -v newdir=&quot;$&#123;NAME&#125;&quot; 'BEGIN &#123;FS=&quot;/&quot;&#125; &#123;print newdir &quot;/&quot; $$NF&#125;' | \
        grep -v &quot;$&#40;NAME&#41;/\.&quot; | grep -v &quot;$&#40;NAME&#41;/$&#40;NAME&#41;&quot;&#41;
        rm $&#40;NAME&#41;

upload&#58; backup
        scp $&#40;BASE&#41;.tar.bz2 $&#40;REMOTE_HOST&#41;
[/code:1:fcda7a3efc]

---

From: Melkor
Date: Wed Feb 7 18:47:33 2007

Hi amadeus,

Yep, could be a good idea to avoid typos like I mentioned.

In the mean time, I applied my &quot;dynamic&quot; version technique in a very easy and fine manner. In debian/rules file, I added these lines:

(in the &quot;clean::&quot; target)
[code:1:36ace3e530]sed -r -i -e &quot;s&#58;^VERSION=.+  # UADE_VERSION=&#40;.+&#41;&#58;VERSION=\1&#58;&quot; ./configure[/code:1:36ace3e530]

(in the &quot;configure/uade-uade123::&quot; target)
[code:1:36ace3e530]sed -r -i -e &quot;s&#58;^VERSION=&#40;.+&#41;&#58;VERSION=$&#40;DEB_UPSTREAM_VERSION&#41;  # UADE_VERSION=\1&#58;&quot; ./configure[/code:1:36ace3e530]

And this works like a charm ! :)