Skip to content

Commit

Permalink
Create a stub LCLNSLoggerConfig header after install. See CocoaPods#107.
Browse files Browse the repository at this point in the history
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
  • Loading branch information
xslim authored and alloy committed Apr 7, 2012
1 parent f46c14c commit fa6f0d9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Expand Up @@ -12,5 +12,11 @@ Pod::Spec.new do |s|
s.dependency 'LibComponentLogging-Core', '>= 1.1.4'
s.source_files = 'LCLNSLog.{h,m}'
s.header_dir = 'LibComponentLogging'

def s.post_install(target)
Dir.chdir(config.project_pods_root + 'Headers/LibComponentLogging') do
system 'sed \'s/<UniquePrefix>/MyApp/g\' LCLNSLoggerConfig.template.h > LCLNSLoggerConfig.h'
end
end
end

Expand Up @@ -13,4 +13,10 @@ Pod::Spec.new do |s|
s.header_dir = 'LibComponentLogging'

s.dependency 'LibComponentLogging-Core', '>= 1.1.5'

def s.post_install(target)
Dir.chdir(config.project_pods_root + 'Headers/LibComponentLogging') do
system 'sed \'s/<UniquePrefix>/MyApp/g\' LCLNSLoggerConfig.template.h > LCLNSLoggerConfig.h'
end
end
end
Expand Up @@ -13,4 +13,10 @@ Pod::Spec.new do |s|
s.header_dir = 'LibComponentLogging'

s.dependency 'LibComponentLogging-Core', '>= 1.1.6'

def s.post_install(target)
Dir.chdir(config.project_pods_root + 'Headers/LibComponentLogging') do
system 'sed \'s/<UniquePrefix>/MyApp/g\' LCLNSLoggerConfig.template.h > LCLNSLoggerConfig.h'
end
end
end

0 comments on commit fa6f0d9

Please sign in to comment.