在Windows Xp中编写shell脚本

发布于 2024-12-04 08:42:50 字数 95 浏览 1 评论 0原文

我必须编写 shell 脚本,它将在 cygwin 上运行并构建我的项目。我使用的是Windows-Xp。我怎样才能做到这一点?

(我是shell脚本的新手)

I have to write the shell script, which will run on cygwin and build my projects. I am using Windows - Xp. How can I do that?

( I am newbie for shell script)

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

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

发布评论

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

评论(3

少跟Wǒ拽 2024-12-11 08:42:50

看来您需要获得一些脚本知识。您可以开始学习本教程

对于 hello world shell 脚本:

  1. 打开 Cygwin
  2. 创建 Hello World 脚本: echo "echo Hello World!" >你好.sh。这是一个只有一行 echo Hello World! 的文件
  3. ,运行脚本 ./hello.sh

man 是你的朋友!

It seems like you'll need to get some scripting knowledges. You can start with this tutorial.

For a hello world shell script:

  1. Open Cygwin
  2. Create a Hello World script: echo "echo Hello World!" > hello.sh. It is a file with the only line echo Hello World!
  3. Run the script ./hello.sh

man is your friend!

羁客 2024-12-11 08:42:50

好吧,cygwins 默认 shell 是 bash,谷歌一下,然后带着更具体的问题回到这里......

well cygwins default shell is bash, google that and then get back here on SO with a more specific question...

你穿错了嫁妆 2024-12-11 08:42:50

您是否尝试过从 cygwin 命令提示符构建项目?

在开始编写脚本之前,您需要知道构建项目需要哪些命令。

Have you tried building your projects from the cygwin command prompt?

Before you start writing a script, you need to know which commands you need to build your project.

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