=?GB2312?B?UmU6INf2wctkZWKw/KOstavKx7Cy17C1xMqxuvKz9s7KzOLByw==?=



Would advise not to use cd and to do all the operations with absolute
paths, like:
 - mv /usr/share/games/hedgewars/Data/Locale/hedgewars_zh_CN.qm
/usr/share/games/hedgewars/Data/Locale/hedgewars_zh_CN-org.qm

You can also use variables in the paths, I think the scripts are
easier to maintain this way too

Julien

2010/10/15 tonghuix <tonghuix gmail com>:
>  接着说的那个hedgewars的汉化问题
>
> 我把改动做成deb包了,但是安装的出现了冲突
>
> 我是用dpkg -i hedgewars-cn.deb命令安装的
>
> 返回信息如下
> (正在读取数据库 ... 系统当前共安装有 399842 个文件和目录。)
> 正在解压缩 hedgewars-zhcn-tonghuix (从 hedgewars-cn.deb) ...
> must do
> mv: 无法 stat "hedgewars_zh_CN.qm": 没有那个文件或目录
> mv: 无法 stat "zh_CN.txt": 没有那个文件或目录
> mv: 无法 stat "generic.txt": 没有那个文件或目录
> done______
> dpkg:处理 hedgewars-cn.deb (--install)时出错:
>  正试图覆盖"/usr/share/games/hedgewars/Data/Names/generic.txt",它同时被包含于软件包
> hedgewars-data 0.9.13-1
> 在处理时有错误发生:
>  hedgewars-cn.deb
>
> 另外deb包下的DEBIAN目录下的preinst里的内容如下
>
> #!/bin/bash
> if [[ $1 == install || $1 == upgrade ]]; then
>    echo "must do"
>    cd /usr/share/games/hedgewars/Data/Locale
>    mv hedgewars_zh_CN.qm hedgewars_zh_CN-org.qm
>    mv zh_CN.txt zh_CN-org.txt
>    cd ..
>    cd Names
>    mv generic.txt generic-org.txt
> fi
> echo "done______"
>
> _______________________________________________
> gnome-cn-list mailing list
> gnome-cn-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-cn-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]