Skip to content

Commit fd1d926

Browse files
committed
update make-release script
1 parent f7b0889 commit fd1d926

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

scripts/make-release.sh

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ while getopts "v:n:" opt; do
2626
exit 1
2727
;;
2828
esac
29-
d``one
29+
done
3030

3131
echo -e "Preparing binary release\n=====================\n"
3232
echo -e "Version = ${version}"
3333
echo -e "Host = ${host}"
3434

3535
# create the binary directory
3636
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
4141

4242
echo -e "Copying over the binary\n"
4343
cp ${DIR}/../bin/rapmap ${DIR}/../RELEASES/${betaname}/bin/
@@ -57,20 +57,3 @@ cd ${DIR}/../RELEASES
5757
tar czvf ${betaname}.tar.gz ${betaname}
5858

5959
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

Comments
 (0)