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 |
Reporter | giallu | Assigned To | giallu | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.1.1 | ||||
Summary | 0008662: Unneeded executable bits on mantis modules | ||||
Description | From a mantisbt-dev mail: Hi, 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 Best Regards, Patrick | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
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. |
|
Here's 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: pushd ${tag_path} 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 copy'n'paste. :) Downloads and cleanups actually had limited prompting for options but I took it out before submitting because I couldn't get it intuitively right. I don't think it is worth the time doing this in PERL or Python. You'd probably end up with a nicer script but in this case it isn't really worth the extra time one usually ends up using. imho anyway. Good catch. :) I used awk with a regex match because I didn't want to assume people having PHP CLI on their system. But then again, zip isn't always there either. I'm 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-11 19:04 Details 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 |
Affected Issues 0008662 |