user511046
user511046

Reputation: 199

poor mans source control zip project files on build

I am looking for a way to zip a project including all files and have the zip file dated. has anyone done this and is it possible ?

Upvotes: 1

Views: 138

Answers (1)

wallyk
wallyk

Reputation: 57774

Sure, I did this for years using Windows NT. I created a batch file named bu.bat in each project and also a backup directory named bu. The batch file contained

pkzip -ex bu/projectprefix%1 *.c *.cpp *.asm *.h *.bat (etc.)

and then I would use it by first listing the backup directory to see what the next number to use is and then

bu 179

Pkzip stores the file timestamps into the archive. -ex chooses xtra (a higher level) of compression.

Upvotes: 1

Related Questions