Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).

Assignment 2 and Clarifications.
 
Options:
RSS cloud
Jump to:

Assignment 2, Task 1.

1 of 390 articles shown, currently no other people reading this forum.
photo
From: Suyash J.
Date: Fri 22nd May, 7:12pm
Actions: 
        Login-to-reply
"Christopher McDonald" <chris.                     wrote:

> "Jason Veljanoski"                               wrote:
> 
> > So if the script is in the same folder as calcmarks then the comments in calcmarks will be updated as specified.
> > If I had another project (let's say myProject), I can move the script inside myProject and run ./updateversion. This will update the comments in myProject 
> > as specified.
> 
> Yes, that's correct.
> 
> > The specifications for Q1 say that the project name can be taken in as an argument but that is not entirely necessary as there would be a way to get the 
> > root folder name through a few bash commands.
> 
> Your script will need to know the name of the project that it's updating,
> otherwise you won't know what/how to find the appropriate comment lines in the files.
> 
> Do not rely upon the project's name being in a directory of the same name
> 
> (I will often have multiple directories, containing different versions/approaches the same problem)

Im still a little confused regarding how the script will be tested. Is it by just running ./updateversion in the shell and producing the required changes to 
version names of all the .c and .h files. Or making no changes and reporting an error if the version description does not match.  

Or by running the make file, and then running the required steps asked for?

Thanks, 

Related articles

Assignment 2, Task 1. (all 11) RSS
├─ original   Tue 12th May, 8:24pm, David M.
├─ reply 1   Wed 13th May, 6:39am, Christopher M.
├─ reply 2   Thu 21st May, 6:17pm, Jason V.
├─ reply 3   Fri 22nd May, 12:30am, David M.  O.P.
├─ reply 4   Fri 22nd May, 7:42am, Christopher M.
├─ reply 5   Fri 22nd May, 11:57am, Jason V.
├─ reply 6   Fri 22nd May, 12:29pm, Christopher M.
├─ reply 7   Fri 22nd May, 12:38pm, Jason V.
├─ THIS   Fri 22nd May, 7:12pm, Suyash J.
├─ reply 9   Fri 22nd May, 8:03pm, David M.  O.P.
└─ reply 10   Sun 24th May, 7:37am, Christopher M.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020