开发者

poor mans source control zip project files on build

开发者 https://www.devze.com 2023-04-12 05:39 出处:网络
I am looking for a way to zip 开发者_如何学Goa project including all files and have the zip file dated.

I am looking for a way to zip 开发者_如何学Goa project including all files and have the zip file dated. has anyone done this and is it possible ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号