创建开发环境文件夹结构的脚本?

发布于 2024-07-21 05:06:56 字数 984 浏览 8 评论 0原文

看起来像一个简单的脚本(cmd.exe批处理,*nix shell,perl,python或其他..)用于为开发环境创建文件夹结构。

假设我们在一个需要 10 多个开发人员加入的项目中,并且我们确实希望确保他们所有人都获得相同的库和环境,以确保“我们处于同一波长”......

编辑:感谢randog ...即使使用版本控制系统(例如,首先存储在存储库中的文件夹结构是什么。 ..

我的意思是:

::THIS BATCH FILE CREATES THE DEV ENVIRONMENT FOLDER STRUCTURE 
::CREATE THE COMMON LIBRARY FOLDER
MKDIR D:\libs\
:: FOLDER FOR LOGGING PLATFORMS - put log4net , etc here
MKDIR D:\libs\log
:: FOLDER FOR Object Relational Mapping libs
MKDIR D:\libs\orm
:: FOLDER FOR GUI 
MKDIR d:\libs\gui
:: folder for gui controls 
mkdir d:\libs\gui\controls

:: ... OTHER ?!

::CREATE THE DEVELOPER'S OWN LIBRARY FOLDER '
MKDIR D:\mylibs\
:: FOLDER FOR LOGGING PLATFORMS - put log4net , etc here
MKDIR D:\mylibs\log
:: FOLDER FOR Object Relational Mapping mylibs
MKDIR D:\mylibs\orm
:: FOLDER FOR GUI 
MKDIR d:\mylibs\gui
:: folder for gui controls 
mkdir d:\mylibs\gui\controls

How would look like a simple script ( cmd.exe batch, *nix shell , perl , python or whatever .. ) for creating folder structure for development environment.

Suppose we are in a project where we need more than 10 developers to bring in and we do want to ensure that all of them get the same libs and environment to ensure that "we are on the same wavelength" ...

Edit: Thanks to randog ... Even if using version control system (e.g. what would be folder structure to store in the repository first ...

I mean something like:

::THIS BATCH FILE CREATES THE DEV ENVIRONMENT FOLDER STRUCTURE 
::CREATE THE COMMON LIBRARY FOLDER
MKDIR D:\libs\
:: FOLDER FOR LOGGING PLATFORMS - put log4net , etc here
MKDIR D:\libs\log
:: FOLDER FOR Object Relational Mapping libs
MKDIR D:\libs\orm
:: FOLDER FOR GUI 
MKDIR d:\libs\gui
:: folder for gui controls 
mkdir d:\libs\gui\controls

:: ... OTHER ?!

::CREATE THE DEVELOPER'S OWN LIBRARY FOLDER '
MKDIR D:\mylibs\
:: FOLDER FOR LOGGING PLATFORMS - put log4net , etc here
MKDIR D:\mylibs\log
:: FOLDER FOR Object Relational Mapping mylibs
MKDIR D:\mylibs\orm
:: FOLDER FOR GUI 
MKDIR d:\mylibs\gui
:: folder for gui controls 
mkdir d:\mylibs\gui\controls

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

妞丶爷亲个 2024-07-28 05:06:56

您应该使用版本控制系统。 当您的开发人员从存储库中签出代码时,将自动创建所需的目录结构。

You should use a version control system. When your developers check out the code from repository, the needed directory structure will be created automatically.

瑕疵 2024-07-28 05:06:56

关于开发环境,我将在 tar/zip 文件中创建包含相关文件的整个目录结构。 每个开发人员只需从该存档中提取所有内容即可安装其环境。

关于代码本身,每个开发人员都可以从中签出的远程存储库是最好的。

About development environment, I would create the whole directory structure filled with relevant files in a tar/zip file. Each developer only has to extract everything from this archive for installing its environment.

About code itself, a remote repository from which each developer can checkout is best.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文