Page 2 of 3

Re: Facilitate a build from the trunk

PostPosted: 11.01.2012, 17:18
by -Iwan-
You could also create a loop, which asks for the task "Aut2Exe.exe". If it is not existing, then you rmdir could run.

Re: Facilitate a build from the trunk

PostPosted: 12.01.2012, 21:12
by Gerby
Alright! I've decided to stay with the simple delay workaround.

New version BuildLatestTrunk.cmd 1.0.2 (first post of this thread)

Re: Facilitate a build from the trunk

PostPosted: 16.01.2012, 11:24
by rednaxela
Thank you very much Gerby, it works like a charm now :D

Re: Facilitate a build from the trunk

PostPosted: 24.01.2012, 10:41
by rednaxela
Good morning!

Despite the implemented delay, however, the behavior described above happens again in some cases. Maybe the delay is too short :?: Here i have now set the value of n to 3 (for 2 seconds of dalay), that seems to be a save solution.

Greetz,
Alexander

Re: Facilitate a build from the trunk

PostPosted: 24.01.2012, 21:27
by Gerby
Hi Alexander!

That happens if you just want to save a single second of time.

Thank you for the feedback. I've adjusted the value also in the initial post (now script revision 1.0.3).

Gerby

Re: Facilitate a build from the trunk

PostPosted: 27.07.2015, 08:02
by Gerby
Hi!

If the ZIP file of a trunk was faulty for any reason (e.g. problems during download), this wasn't handled by the batch. Now this kind of error is also regarded with an error message (see batch code V1.1.0 in first post).

Have a nice summer
Gerby

Re: Facilitate a build from the trunk

PostPosted: 03.08.2018, 08:01
by Gerby
Since the recent update of the Trac interface on trac.wsusoffline.net, the downloaded ZIPs don't have the "r" in their file names anymore (e.g. trunk-981.zip instead of trunk-r981.zip). Thus, the batch file doesn't find the trunk ZIPs anymore when used directly.

Workaround for now:
Just rename the downloaded ZIP by inserting the r letter before the revision number in the file name.

Maybe I find the time to adapt the batch file in the near future.

Greetz
Gerby

Addition to "Facilitate a build from the trunk"

PostPosted: 06.08.2018, 11:33
by engelhro
As I'm not allowed to post the Informationen/Information section, here's a short remark on the Facilitate a build from the trunk topic.

I was annoyed by the now necessary rename for the downloaded trunk archive, so I already adapted the script accordingly. Until @Gerby adjusts it in the linked topic, here are the necessary changes for everyone who wants to do that himself.

Change the following lines in section "Search for latest trunk":
Code: Select all
set TrunkSearcher=trunk-*.zip
(the "r" has been dropped)

Code: Select all
set BuildTrunk=trunk-%HighestRev%.zip
(the "r" has been dropped)

And change the following line in section "Sub batch for searching latest revision":
Code: Select all
if %MarkerSet% == 1 (set TempRev=%TempRev:~7,-4%) else (set TempRev=%TempRev:~6,-4%)
(an "8" has been turned into a "7", and a "7" has been turned into a "6").

That's it, afterwards the script runs fine as before :).

In case you want to purge each reference to the old "r‹nnn›" naming scheme, even in the other output, you can additionally change the following lines:

In Section "Search for latest trunk":
Code: Select all
set BuildDir=build-%HighestRev%
(the "r" has been dropped)

And in section "Procedure for creating the build":
Code: Select all
echo Using trunk %HighestRev%...
(the "r" has been dropped)

Re: Addition to "Facilitate a build from the trunk"

PostPosted: 07.08.2018, 08:43
by Gerby
Hello engelhro!

engelhro wrote:As I'm not allowed to post the Informationen/Information section, here's a short remark on the Facilitate a build from the trunk topic.

I wasn't aware of this restriction. No wonder that there are only few actions in this section. For now, I've merged your post with this thread.
Note 2018-09-02: Moved this thread to the Miscealleaneous section, so others can make comments again.

engelhro wrote:Until @Gerby adjusts it in the linked topic, here are the necessary changes for everyone who wants to do that himself.

Thanks for your input. As I'm short of time at the moment, I will adapt the batch later (hopefully within a week). I'm aiming to make a general solution that includes both cases (with and without r). Not sure yet, how I want to handle it.

Greetz
Gerby

Re: Facilitate a build from the trunk

PostPosted: 07.08.2018, 10:38
by boco
If the "r" never reappears, you don't need to cover it. Don't think the Admin will ever return to the old trac.