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
344d0d1b
Commit
344d0d1b
authored
Dec 06, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Style] Remove trailing whitespaces in static script parts
parent
e87f9313
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
embed_frameworks_script.rb
lib/cocoapods/generator/embed_frameworks_script.rb
+6
-6
No files found.
lib/cocoapods/generator/embed_frameworks_script.rb
View file @
344d0d1b
...
@@ -46,20 +46,20 @@ module Pod
...
@@ -46,20 +46,20 @@ module Pod
script
=
<<-
eos
.
strip_heredoc
script
=
<<-
eos
.
strip_heredoc
#!/bin/sh
#!/bin/sh
set -e
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
install_framework()
install_framework()
{
{
local source="${BUILT_PRODUCTS_DIR}/
#{
target_definition
.
label
}
/$1"
local source="${BUILT_PRODUCTS_DIR}/
#{
target_definition
.
label
}
/$1"
local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
if [ -L ${source} ]; then
if [ -L ${source} ]; then
echo "Symlinked..."
echo "Symlinked..."
source=$(readlink "${source}")
source=$(readlink "${source}")
fi
fi
# use filter instead of exclude so missing patterns dont' throw errors
# use filter instead of exclude so missing patterns dont' throw errors
echo "rsync -av --filter
\"
- CVS/
\"
--filter
\"
- .svn/
\"
--filter
\"
- .git/
\"
--filter
\"
- .hg/
\"
--filter
\"
- Headers/
\"
--filter
\"
- PrivateHeaders/
\"
${source} ${destination}"
echo "rsync -av --filter
\"
- CVS/
\"
--filter
\"
- .svn/
\"
--filter
\"
- .git/
\"
--filter
\"
- .hg/
\"
--filter
\"
- Headers/
\"
--filter
\"
- PrivateHeaders/
\"
${source} ${destination}"
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" "${source}" "${destination}"
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" "${source}" "${destination}"
...
@@ -68,7 +68,7 @@ module Pod
...
@@ -68,7 +68,7 @@ module Pod
code_sign "${destination}/$1"
code_sign "${destination}/$1"
fi
fi
}
}
# Signs a framework with the provided identity
# Signs a framework with the provided identity
code_sign() {
code_sign() {
# Use the current code_sign_identitiy
# Use the current code_sign_identitiy
...
@@ -76,7 +76,7 @@ module Pod
...
@@ -76,7 +76,7 @@ module Pod
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1
}
}
eos
eos
script
+=
"
\n
"
unless
frameworks_by_config
.
values
.
all?
(
&
:empty?
)
script
+=
"
\n
"
unless
frameworks_by_config
.
values
.
all?
(
&
:empty?
)
frameworks_by_config
.
each
do
|
config
,
frameworks
|
frameworks_by_config
.
each
do
|
config
,
frameworks
|
...
...
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