开发者

How to deal with Icon@2x.png in svn?

I want to check in my icons and other PNGs. Of course, I'm following the iPhone image naming convention, so I have Icon.png, and Icon@2x.png, Default.png and Default@2x.png.

One problem: svn thinks I'm trying to add something with a pinned version开发者_StackOverflow社区.

hacksaw > svn add Default@2x.png
svn: warning: 'Default' not found

hacksaw > ls -l Default@2x.png
-rw-r--r--@ 1 hacksaw  hacksaw  11139 Mar  1 14:44 Default@2x.png

Is there an alternate syntax for the 2x file? Or is there an escape that svn uses that I can't seem to find in the red-bean book?

I've thought about switching to git, but I'd really like to put it off until I finish this submission.


How to Add Those @2x iOS4 Resources to SVN

$ svn add Default@2x.png@
A (bin) Default@2x.png


You need to append '@' to any filename that already contains '@', e.g. svn add "Default@2x.png@".

If you want to add lots of files containing '@', and you're using bash or similiar, the following snippet is very handy:

for i in '*@*'; do svn add "$i@"; done


If you place all resource file of default@2x.png in a folder like Resource-ipad then add this folder on svn add path. you not need to append @ at the end of the .png


Using svn with Xcode will also solve it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜