Commit be7bfe4d authored by Fabio Pelosin's avatar Fabio Pelosin

[CopyResourcesScript] Minor cleanup

parent df1c3d62
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment