Permalink
Browse files

Update the build script so that it ignores development plists, copies…

… README, LICENSE and the CHANGELOG and ignores internal headers.
  • Loading branch information...
1 parent 2263bb7 commit 09ab42eeb14f2fbae64c60581a76b1348ec4a36c @jtowle jtowle committed Jun 18, 2012
Showing with 13 additions and 1 deletion.
  1. +5 −1 AirshipLib/package_airshiplib.sh
  2. +3 −0 package_sample.sh
  3. +5 −0 package_samples.sh
View
6 AirshipLib/package_airshiplib.sh
@@ -53,6 +53,10 @@ cd "${destPath}"
find Library \! -name "*.h" -type f -delete
find Common \! -name "*.h" -type f -delete
+
+#delete internal test headers
+rm -rf `find . -name "*+Internal.h" `
+
find External \! '(' -name "UA_*.h" -o -name "UA_" ')' -type f -delete
find External -type d -empty -delete
rm -rf External/GHUnitIOS.framework
@@ -69,4 +73,4 @@ rm AppledocSettings.plist
find . -name "*.orig" -delete
-fi
+fi
View
3 package_sample.sh
@@ -45,4 +45,7 @@ rm -rf `find . -name "*Tests"`
rm -rf `find . -name "*Test*.plist"`
rm -rf `find . -name "*Test*.pch"`
rm -rf `find . -name "*.orig" `
+rm -rf `find . -name "AirshipDevelopment.plist" `
+
+
mv -f AirshipConfig.plist.sample AirshipConfig.plist
View
5 package_samples.sh
@@ -42,7 +42,12 @@ rm -rf `find . -name "*Test*.plist"`
rm -rf `find . -name "*Test*.pch"`
rm -rf `find . -name "*.orig" `
+rm -rf `find . -name "AirshipDevelopment.plist" `
+
# copy the sample plist into place
for sample in InboxSample PushSample StoreFrontSample SubscriptionSample; do
+ cp ../CHANGELOG $sample
+ cp ../LICENSE $sample
+ cp ../README.rst $sample
mv -f $sample/AirshipConfig.plist.sample $sample/AirshipConfig.plist
done

0 comments on commit 09ab42e

Please sign in to comment.