您的位置:首页 > 其它

SVN won't import *.a library

2016-01-16 08:55 531 查看
I've got a compiled static library (with an "a" extension) I want to include in my SVN repository but adding it never works (noproblems adding other types of items). If I change the extension (e.g., "library.a" --> "library.b"), the add works. Why is the "a" extension failing? Is there a way around this without renaming the file?Have you checked your global ignore settings. On linux they are stored in ~/.subversion/configThe default on my machine is :
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
so it ignores *.a filesmore info hereYou should be able to add the file with
svn add "file" --no-ignore
to bypass any ignore rule set.If the command:
svn status --no-ignore
returns with I in front you have a local Ignore. Run:
svn propedit svn:ignore
如果需要一次性添加所有文件,可使用如下命令:svn st 
--no-ignore
| awk '{if ( $1 == "?") { print $2}}' | xargs svn add如果需要添加那些被忽略的文件,可使用如下命令:
svn st 
--no-ignore
| awk '{if ( $1 == "I") { print $2}}' | xargs svn add
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: