Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with [email protected] in svn?

Tags:

svn

iphone

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 [email protected], Default.png and [email protected].

One problem: svn thinks I'm trying to add something with a pinned version.

hacksaw > svn add [email protected]
svn: warning: 'Default' not found

hacksaw > ls -l [email protected]
-rw-r--r--@ 1 hacksaw  hacksaw  11139 Mar  1 14:44 [email protected]

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.

like image 346
Hack Saw Avatar asked Mar 04 '11 07:03

Hack Saw


3 Answers

How to Add Those @2x iOS4 Resources to SVN

$ svn add [email protected]@
A (bin) [email protected]
like image 67
Kazuki Sakamoto Avatar answered Sep 21 '22 16:09

Kazuki Sakamoto


You need to append '@' to any filename that already contains '@', e.g. svn add "[email protected]@".

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
like image 45
occulus Avatar answered Sep 19 '22 16:09

occulus


If you place all resource file of [email protected] 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

like image 1
shauket Avatar answered Sep 19 '22 16:09

shauket