Skip to content

Commit

Permalink
Patching dll.hpp before/after pod trunk push
Browse files Browse the repository at this point in the history
  • Loading branch information
abbeycode committed May 18, 2018
1 parent 6377a72 commit 054d56c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Scripts/push-output.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else
echo -e "\nTag looks like a version number: $TRAVIS_TAG"
fi

# For linting purposes, fix the error in dll.hpp
sed -i .original 's/RARGetDllVersion();/RARGetDllVersion(void);/' Libraries/unrar/dll.hpp

# Skip tests because they're assumed to have passed during the cocoapod-validate script or else
# this script wouldn't run
echo -e "\nLinting podspec..."
Expand All @@ -26,6 +29,9 @@ if [ $? -ne 0 ]; then
exit 1
fi

# Put back the original dll.hpp
mv Libraries/unrar/dll.hpp.original Libraries/unrar/dll.hpp

echo -e "\nExporting Carthage archive...\n"
# Exports ARCHIVE_PATH, used below
source ./Scripts/archive-carthage.sh
Expand Down

0 comments on commit 054d56c

Please sign in to comment.