LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 959|回复: 10

cvs里的mozilla-firefox-1.0.ebuild没有加入glc

[复制链接]
发表于 2004-11-12 15:29:01 | 显示全部楼层 |阅读模式
IUSE里面没有。
发表于 2004-11-12 15:39:46 | 显示全部楼层
这个ebuild在哪里?
好像中文portage自动10/28后面就好久没更新了。
发表于 2004-11-12 15:50:50 | 显示全部楼层
 楼主| 发表于 2004-11-12 16:07:44 | 显示全部楼层
最初由 Greyhound 发表
这个ebuild在哪里?
好像中文portage自动10/28后面就好久没更新了。


用小锁的脚本吧。


很好用的说。
自动从cvs取得最新的中文portage+删除旧的,替换新的

PS:唯一的要求是你的中文portage要在/usr/local/portage下,不让的话得手工修改他的脚本。
 楼主| 发表于 2004-11-12 16:11:44 | 显示全部楼层
这个是小锁的脚本
最初由小锁发表



[PHP]tux ~ # cat glc_sync
#!/bin/bash
###
### sync with the chinese portages
###

WORKDIR=.
PORTAGEDIR=/usr/local

if [ `whoami` != "root" ]
then
        echo "!!!You are not root"
        exit
fi

echo "Begin download the portage"
wget http://www.magiclinux.org/cgi-bin/viewcvs.cgi/gentoo/portage.tar.gz?view=tar -O ${WORKDIR}/portage.tar.gz

if [ $? -ne 0 ]
then
        echo "!!!Some error happend when downloading"
        exit
fi

echo "Download successed"

echo "Remove the old portage"
rm -rf ${PORTAGEDIR}/portage
echo "Extract the portage file"
tar zxvf ${WORKDIR}/portage.tar.gz -C ${PORTAGEDIR}

if [ $? -ne 0 ]
then
        echo "!!!Some error happend when extracting"
        exit
fi

echo "Clear the temp file"
rm -f ${WORKDIR}/portage.tar.gz

echo "All successed Enjoy it"[/PHP]

把它存到/root下
chmod +x glc_sync
运行
./glc_sync
发表于 2004-11-12 16:53:48 | 显示全部楼层
不能运行?
Begin download the portage
/root/glc_sync: line 16: a: 没有那个文件或目录
!!!Some error happend when downloading
发表于 2004-11-12 16:57:19 | 显示全部楼层
我修改了一下现在应该可以了。
发表于 2004-11-12 16:58:50 | 显示全部楼层
虎兄,你把脚本炒错了吧
肯能是论坛的问题

  1. #!/bin/bash
  2. ###
  3. ### sync with the chinese portages
  4. ###

  5. WORKDIR=.
  6. PORTAGEDIR=/usr/local

  7. if [ `whoami` != "root" ]
  8. then
  9.         echo "!!!You are not root"
  10.         exit
  11. fi

  12. echo "Begin download the portage"
  13. wget http://www.magiclinux.org/cgi-bin/viewcvs.cgi/gentoo/portage.tar.gz?view=tar -O ${WORKDIR}/portage.tar.gz

  14. if [ $? -ne 0 ]
  15. then
  16.         echo "!!!Some error happend when downloading"
  17.         exit
  18. fi

  19. echo "Download successed"

  20. echo "Remove the old portage"
  21. rm -rf ${PORTAGEDIR}/portage
  22. echo "Extract the portage file"
  23. tar zxvf ${WORKDIR}/portage.tar.gz -C ${PORTAGEDIR}

  24. if [ $? -ne 0 ]
  25. then
  26.         echo "!!!Some error happend when extracting"
  27.         exit
  28. fi

  29. echo "Clear the temp file"
  30. rm -f ${WORKDIR}/portage.tar.gz

  31. echo "All successed Enjoy it"
复制代码
发表于 2004-11-12 16:59:02 | 显示全部楼层
嘻嘻,我也这么改了
 楼主| 发表于 2004-11-12 17:16:07 | 显示全部楼层
最初由 小锁 发表
虎兄,你把脚本炒错了吧
肯能是论坛的问题

  1. #!/bin/bash
  2. ###
  3. ### sync with the chinese portages
  4. ###

  5. WORKDIR=.
  6. PORTAGEDIR=/usr/local

  7. if [ `whoami` != "root" ]
  8. then
  9.         echo "!!!You are not root"
  10.         exit
  11. fi

  12. echo "Begin download the portage"
  13. wget [url]http://www.magiclinux.org/cgi-bin/viewcvs.cgi/gentoo/portage.tar.gz?view=tar[/url] -O ${WORKDIR}/portage.tar.gz

  14. if [ $? -ne 0 ]
  15. then
  16.         echo "!!!Some error happend when downloading"
  17.         exit
  18. fi

  19. echo "Download successed"

  20. echo "Remove the old portage"
  21. rm -rf ${PORTAGEDIR}/portage
  22. echo "Extract the portage file"
  23. tar zxvf ${WORKDIR}/portage.tar.gz -C ${PORTAGEDIR}

  24. if [ $? -ne 0 ]
  25. then
  26.         echo "!!!Some error happend when extracting"
  27.         exit
  28. fi

  29. echo "Clear the temp file"
  30. rm -f ${WORKDIR}/portage.tar.gz

  31. echo "All successed Enjoy it"
复制代码


不会吧?我是我的可以执行的用中键cp的阿。

怎么会错呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表