Commit 2359edf86b973ed6269c3fcdb64999fdf84f61c6

Authored by Goutte
1 parent d729e9cd

Update the publication script to use `git describe --tags`.

Showing 2 changed files with 8 additions and 3 deletions   Show diff stats
1 -1.0.0-rc8  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +v1.0.0
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 # and swap configuration below. 15 # and swap configuration below.
16 16
17 # Note that the storms server seems to reject key-based authentication, 17 # Note that the storms server seems to reject key-based authentication,
18 -# whatever's written in /etc/sshd configuration. Weird. 18 +# whatever's written in its /etc/sshd configuration. Weird.
19 19
20 # CONFIGURATION ############################################################### 20 # CONFIGURATION ###############################################################
21 21
@@ -80,11 +80,16 @@ On_White='\033[47m' # White @@ -80,11 +80,16 @@ On_White='\033[47m' # White
80 echo -e "${Green}Cleaning local files...${Off}" 80 echo -e "${Green}Cleaning local files...${Off}"
81 rm -R cache/* 81 rm -R cache/*
82 82
  83 +# Fill the VERSION number with the new version
  84 +VERSION=`git describe --tags`
  85 +echo -e "${Green}Setting new version : ${Yellow}${VERSION}${Off}"
  86 +echo $VERSION > VERSION
  87 +
83 88
84 # UPLOAD ###################################################################### 89 # UPLOAD ######################################################################
85 90
86 # Delete is dangerous, as we're using a file-based database 91 # Delete is dangerous, as we're using a file-based database
87 -# so we need to exclude some directories and files. 92 +# so we must exclude some directories and files.
88 echo -e "${Green}Uploading files...${Off}" 93 echo -e "${Green}Uploading files...${Off}"
89 rsync -r --delete \ 94 rsync -r --delete \
90 --exclude .git \ 95 --exclude .git \