Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/rocks
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-07-29 08:09:23 +0300
committerSoumith Chintala <soumith@gmail.com>2016-07-29 08:09:23 +0300
commit77ed5b64dd7ea0d16850aca2bde9d801c35f3a97 (patch)
tree250228ee6d293fe895ea1170de0c39d56724e4d4 /rocks
parent39857242f154ec1a84355efd74126f3d925e7af4 (diff)
add versioning script
Diffstat (limited to 'rocks')
-rw-r--r--rocks/version.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/rocks/version.sh b/rocks/version.sh
new file mode 100644
index 0000000..a2cd17d
--- /dev/null
+++ b/rocks/version.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+cd "$(dirname "$0")"
+fname=$(ls|grep rockspec|grep -v scm | sort -r -V|head -n1)
+echo "Last known version: $fname"
+luarocks new_version $fname
+
+new_fname=$(ls|grep rockspec|grep -v scm | sort -r -V|head -n1)
+new_version=$(echo $new_fname | cut -f2,3,4,5 -d'-'|sed -e 's/.rockspec//g')
+echo "new rockspec: $new_fname"
+echo "new version: $new_version"
+git add $new_fname
+git commit -m "Cutting version $new_version"
+git branch $new_version
+
+git push origin master:master
+git push origin $new_version:$new_version
+
+git clone https://github.com/torch/rocks
+cp $new_fname rocks/
+cd rocks
+th make-manifest.lua
+git add $new_fname
+git commit -am "adding rockspec $new_fname"
+git push
+cd ..
+rm -rf rocks
+cd ..
+