View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008662||mantisbt||bugtracker||public||2007-12-10 04:15||2008-01-19 04:24|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Target Version||Fixed in Version||1.1.1|
|Summary||0008662: Unneeded executable bits on mantis modules|
From a mantisbt-dev mail:
a few days ago I had problems with mantis, because some files have the
in the mantis source base directory. But these output just lists files
|Tags||No tags attached.|
Hi giallu, can you put a shell script together that takes a tag and a release name as command line parameters and packs a release based on it?
The script should do the following:
I would add to that:
A couple of extra points:
Lets go ahead with this functionality as a starting point. We can always improve it later.
mantispkg.sh (2,707 bytes)
Heres a quick script to do just about everything you asked for.
@thansen - I like the script, but I have a couple suggestions, and a question:
I tested the script and we are (almost) there.
The # Retrieve release name. did not work for me, while this fixed it:
In the same section, I find the awk command almost unreadable, so I replaced it wit something like:
then I added a -c option to clean up the tagged directory after packages are built (default to keep it)
Thanks a lot for your contribution.
I used .DIGESTS because I had just used that digest function in another script so it was basically copynpaste. :)
Downloads and cleanups actually had limited prompting for options but I took it out before submitting because I couldnt get it intuitively right.
I dont think it is worth the time doing this in PERL or Python. Youd probably end up with a nicer script but in this case it isnt really worth the extra time one usually ends up using. imho anyway.
Good catch. :)
I used awk with a regex match because I didnt want to assume people having PHP CLI on their system. But then again, zip isnt always there either.
Im glad it helped anyway.
The package creation script is now in SVN, and I also took care of removing the execution bit on all files in the 1.1 branch (it seems trunk was already fixed)
MantisBT: master-1.1.x 5fb20218
2008-01-12 00:04:29Details Diff
|Fix 8662: Unneeded executable bits on mantis modules
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4876 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
|2007-12-10 04:15||giallu||New Issue|
|2007-12-15 20:34||vboctor||Note Added: 0016446|
|2008-01-11 10:14||giallu||Note Added: 0016636|
|2008-01-11 10:48||vboctor||Note Added: 0016637|
|2008-01-11 12:36||thansen||File Added: mantispkg.sh|
|2008-01-11 12:36||thansen||Note Added: 0016639|
|2008-01-11 13:09||jreese||Note Added: 0016640|
|2008-01-11 18:37||giallu||Note Added: 0016642|
|2008-01-11 18:50||thansen||Note Added: 0016643|
|2008-01-12 19:23||giallu||Status||new => resolved|
|2008-01-12 19:23||giallu||Fixed in Version||=> 1.1.1|
|2008-01-12 19:23||giallu||Resolution||open => fixed|
|2008-01-12 19:23||giallu||Assigned To||=> giallu|
|2008-01-12 19:23||giallu||Note Added: 0016651|
|2008-01-19 04:24||vboctor||Status||resolved => closed|
|2008-10-20 20:20||Changeset attached||master-1.1.x 667e1f1e =>|
|2008-11-11 09:03||giallu||Changeset attached||master-1.1.x 5fb20218 =>|