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


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

Assignment 2 and Clarifications.
RSS cloud
Jump to:

Assignment 2, Task 1.

1 of 390 articles shown, currently no other people reading this forum.
From: Christopher M.
Date: Fri 22nd May, 12:29pm
"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)

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.
├─ THIS   Fri 22nd May, 12:29pm, Christopher M.
├─ reply 7   Fri 22nd May, 12:38pm, Jason V.
├─ reply 8   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