@@ -26,18 +26,18 @@ while getopts "v:n:" opt; do
2626 exit 1
2727 ;;
2828 esac
29- d ` ` one
29+ done
3030
3131echo -e " Preparing binary release\n=====================\n"
3232echo -e " Version = ${version} "
3333echo -e " Host = ${host} "
3434
3535# create the binary directory
3636betaname=RapMap-${version} _${host}
37- mkdir ${DIR} /../RELEASES
38- mkdir ${DIR} /../RELEASES/${betaname}
39- mkdir ${DIR} /../RELEASES/${betaname} /bin
40- mkdir ${DIR} /../RELEASES/${betaname} /lib
37+ mkdir -p ${DIR} /../RELEASES
38+ mkdir -p ${DIR} /../RELEASES/${betaname}
39+ mkdir -p ${DIR} /../RELEASES/${betaname} /bin
40+ mkdir -p ${DIR} /../RELEASES/${betaname} /lib
4141
4242echo -e " Copying over the binary\n"
4343cp ${DIR} /../bin/rapmap ${DIR} /../RELEASES/${betaname} /bin/
@@ -57,20 +57,3 @@ cd ${DIR}/../RELEASES
5757tar czvf ${betaname} .tar.gz ${betaname}
5858
5959echo -e " Done making release!"
60-
61- # echo -e "Pushing the tarball to GitHub\n"
62- # # Since it's currently unclear to me how to overwrite an asset via the GitHub
63- # # API, the following code deletes the old asset, and uploads the new one in its place
64- #
65- # # Get the previous asset id of the tarball
66- # echo -e "Getting previous asset ID\n"
67- # ASSETID=`curl -s -X GET https://api.github.com/repos/COMBINE-lab/salmon/releases/1263754/assets | grep "\"id" | head -1 | awk '{gsub(/,$/,""); print $2}'`
68- #
69- # # Delete the previous tarball
70- # echo -e "Deleting previous asset\n"
71- # curl -X DELETE -H "Authorization: token ${SALMON_PUSH_KEY}" https://api.github.com/repos/COMBINE-lab/salmon/releases/assets/$ASSETID
72- #
73- # # Upload the new tarball
74- # echo -e "Uploading new asset\n"
75- # curl -X POST --data-binary "@SalmonBeta-latest_ubuntu-12.04.tar.gz" https://uploads.github.com/repos/COMBINE-lab/salmon/releases/1263754/assets?name=SalmonBeta-latest_ubuntu-12.04.tar.gz --header "Content-Type:application/gzip" -H "Authorization: token ${SALMON_PUSH_KEY}"
76- # echo -e "Done!\n"
0 commit comments