在Windows Xp中编写shell脚本
我必须编写 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看来您需要获得一些脚本知识。您可以开始学习本教程。
对于 hello world shell 脚本:
echo "echo Hello World!" >你好.sh
。这是一个只有一行echo Hello World!
的文件./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:
echo "echo Hello World!" > hello.sh
. It is a file with the only lineecho Hello World!
./hello.sh
man
is your friend!好吧,cygwins 默认 shell 是
bash
,谷歌一下,然后带着更具体的问题回到这里......well cygwins default shell is
bash
, google that and then get back here on SO with a more specific question...您是否尝试过从 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.