可怜的人在构建上的源代码控制zip项目文件 [英] poor mans source control zip project files on build

查看:82
本文介绍了可怜的人在构建上的源代码控制zip项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种压缩项目(包括所有文件)并压缩zip文件日期的方法. 有没有人做过这并且有可能吗?

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 ?

推荐答案

当然,我多年来使用Windows NT做到了这一点.我在每个项目中创建了一个名为bu.bat的批处理文件,以及一个名为bu的备份目录.批处理文件包含

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将文件时间戳存储到存档中. -ex选择x tra(更高级别)压缩.

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

这篇关于可怜的人在构建上的源代码控制zip项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆