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
d899edca
Commit
d899edca
authored
May 20, 2013
by
Stephen Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Modified so that rsync copies all files in one command.
parent
be7e5888
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
copy_resources_script.rb
lib/cocoapods/generator/copy_resources_script.rb
+10
-2
No files found.
lib/cocoapods/generator/copy_resources_script.rb
View file @
d899edca
...
@@ -72,12 +72,20 @@ module Pod
...
@@ -72,12 +72,20 @@ module Pod
resources
.
each
do
|
resource
|
resources
.
each
do
|
resource
|
script
+=
"install_resource '
#{
resource
}
'
\n
"
script
+=
"install_resource '
#{
resource
}
'
\n
"
end
end
script
+=
COPY_RESOURCES
script
script
end
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
CONTENT
=
<<
EOS
#!/bin/sh
#!/bin/sh
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy.txt
install_resource()
install_resource()
{
{
case $1 in
case $1 in
...
@@ -98,8 +106,8 @@ install_resource()
...
@@ -98,8 +106,8 @@ install_resource()
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xcdatamodeld`.momd"
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xcdatamodeld`.momd"
;;
;;
*)
*)
echo "
rsync -av --exclude '*/.svn/*' ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
"
echo "
${PODS_ROOT}/$1
"
rsync -av --exclude '*/.svn/*' "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
"
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY
"
;;
;;
esac
esac
}
}
...
...
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