Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
be7bfe4d
Commit
be7bfe4d
authored
May 22, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CopyResourcesScript] Minor cleanup
parent
df1c3d62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
copy_resources_script.rb
lib/cocoapods/generator/copy_resources_script.rb
+11
-9
No files found.
lib/cocoapods/generator/copy_resources_script.rb
View file @
be7bfe4d
...
...
@@ -59,9 +59,9 @@ module Pod
#
def
install_resources_function
if
use_external_strings_file?
CONTENT
INSTALL_RESOURCES_FUCTION
else
CONTENT
.
gsub
(
' --reference-external-strings-file'
,
''
)
INSTALL_RESOURCES_FUCTION
.
gsub
(
' --reference-external-strings-file'
,
''
)
end
end
...
...
@@ -72,17 +72,12 @@ module Pod
resources
.
each
do
|
resource
|
script
+=
"install_resource '
#{
resource
}
'
\n
"
end
script
+=
COPY_RESOURCES
script
+=
RSYNC_CALL
script
end
COPY_RESOURCES
=
<<
EOS
rsync -avr --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
rm "$RESOURCES_TO_COPY"
EOS
CONTENT
=
<<
EOS
INSTALL_RESOURCES_FUCTION
=
<<
EOS
#!/bin/sh
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy.txt
...
...
@@ -113,6 +108,13 @@ install_resource()
}
EOS
RSYNC_CALL
=
<<
EOS
rsync -avr --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
rm "$RESOURCES_TO_COPY"
EOS
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment