Last active
August 29, 2015 14:02
-
-
Save imesh/d50b36780effda8c6cb4 to your computer and use it in GitHub Desktop.
Create source release from parent source pack generated in maven release build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
pgp_key_id=622AA831 | |
stratos_version=4.0.0 | |
stratos_parent_source_release=stratos-parent-${stratos_version}-source-release | |
stratos_source_release=apache-stratos-${stratos_version}-source-release | |
echo "Unzipping stratos parent source package..." | |
unzip ${stratos_parent_source_release}.zip | |
echo "Renaming folder name..." | |
mv stratos-parent-${stratos_version} ${stratos_source_release} | |
echo "Removing DEPENDENCIES file..." | |
rm ${stratos_source_release}/DEPENDENCIES | |
echo "Creating the source package zip file..." | |
zip -r ${stratos_source_release}.zip ${stratos_source_release}/* | |
echo "Signing source package..." | |
gpg -u ${pgp_key_id} --armor --output ${stratos_source_release}.zip.asc --detach-sig ${stratos_source_release}.zip | |
echo "Moving ${stratos_parent_source_release}.zip to ${stratos_parent_source_release}.bkp" | |
mv ${stratos_parent_source_release}.zip ${stratos_parent_source_release}.bkp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment