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).
 
Options:
RSS cloud
Jump to:

Assignement 2, Q1 Assumption

1 of 390 articles shown, currently no other people reading this forum.
photo
From: Christopher M.
Date: Fri 15th May 2020, 5:16pm
Actions: 
        Login-to-reply

 

"Lee de Byl" <10*0*8*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hi Chris,
> 
> For the first part of the assignment, can we safely assume that the version comment will appear only once at the top of each file, or do we need to account for the fact that it may appear anywhere in the file?
> 
> Also, do we need to account for the possibility that the program could be renamed (e.g. the makefile could be amended to change the project name, but the source files could still refer to calcmarks)?

Hi Lee,

The "version line" will appear only once in each file (that it appears in), but it could be anywhere.
Replace/update it at the exact same line number.

The project name is an argument provided to the shellscript.
Do not assume/depend on the project being called 'calcmarks'.

If the whole project were ever renamed,  then it's not your shellscript's job to find/determine/update the change of name.

Related articles

Assignement 2, Q1 Assumption (all 5) RSS
├─ original   Fri 15th May 2020, 4:39pm, Lee dB.
├─ THIS   Fri 15th May 2020, 5:16pm, Christopher M.
├─ reply 2   Sat 16th May 2020, 9:25am, Lee dB.  O.P.
├─ reply 3   Sat 16th May 2020, 11:38am, Christopher M.
└─ reply 4   Sat 16th May 2020, 8:10pm, Lee dB.  O.P.
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020