@@ -26,18 +26,18 @@ while getopts "v:n:" opt; do
26
26
exit 1
27
27
;;
28
28
esac
29
- d ` ` one
29
+ done
30
30
31
31
echo -e " Preparing binary release\n=====================\n"
32
32
echo -e " Version = ${version} "
33
33
echo -e " Host = ${host} "
34
34
35
35
# create the binary directory
36
36
betaname=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
41
41
42
42
echo -e " Copying over the binary\n"
43
43
cp ${DIR} /../bin/rapmap ${DIR} /../RELEASES/${betaname} /bin/
@@ -57,20 +57,3 @@ cd ${DIR}/../RELEASES
57
57
tar czvf ${betaname} .tar.gz ${betaname}
58
58
59
59
echo -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