SVN won't import *.a library

来源:互联网 发布:电气控制 视频软件 编辑:程序博客网 时间:2024/06/05 11:50

I've got a compiled static library (with an "a" extension) I want to include in my SVN repository but adding it never works (no problems 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/config

The default on my machine is :

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo

so it ignores *.a files

more info here

You 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

1 0
原创粉丝点击