I’m writing an application in C++ for a university assignment and I need to compress the source files in a zip file and email them to my supervisor for assessment. The problem is I have a ‘toolbox’ in a separate directory that contains a custom namespace that contains a lot of functions and classes I’ve found myself rewriting for every assignment, such as error/sanity checking a user’s input.
Is there a tool that will create a compressed file containing all the source files that are stored in different locations? My compiler is able to follow the directories specified in my preamble, so I imagine there would be a tool out there that could to this. I’m writing this app on Linux, in C++, and would prefer a CLI tool but will settle for a GUI if that’s what there is.
There probably is, but the easiest thing to do is write a short script that copies everything into a temporary directory, then zips that directory.