Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN won't import *.a library

Tags:

svn

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?

like image 746
Jon Avatar asked Mar 06 '10 22:03

Jon


2 Answers

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 
like image 52
jtm Avatar answered Sep 29 '22 01:09

jtm


So, I suggest actually edit that ~/.subversion/config file to allow .a files again:

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

Because I have a lot of those .a files in my projects.

like image 37
Jonny Avatar answered Sep 29 '22 01:09

Jonny