summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--locales/fr_FR/translations.php1
-rw-r--r--models/base.php1
-rwxr-xr-xscripts/make-archive.sh14
-rwxr-xr-xscripts/make-tag.sh6
-rw-r--r--templates/config_index.php4
5 files changed, 26 insertions, 0 deletions
diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php
index 809120b3..c2ec005a 100644
--- a/locales/fr_FR/translations.php
+++ b/locales/fr_FR/translations.php
@@ -167,4 +167,5 @@ return array(
'Backlog' => 'En attente',
'Work in progress' => 'En cours',
'Done' => 'Terminé',
+ 'Application version: ' => 'Version de l\'application :'
);
diff --git a/models/base.php b/models/base.php
index 85a8f252..8259bc6f 100644
--- a/models/base.php
+++ b/models/base.php
@@ -16,6 +16,7 @@ require __DIR__.'/schema.php';
abstract class Base
{
+ const APP_VERSION = 'master';
const DB_VERSION = 1;
const DB_FILENAME = 'data/db.sqlite';
diff --git a/scripts/make-archive.sh b/scripts/make-archive.sh
new file mode 100755
index 00000000..3de519fd
--- /dev/null
+++ b/scripts/make-archive.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+VERSION=$1
+APP="kanboard"
+
+cd /tmp
+rm -rf /tmp/$APP /tmp/$APP-*.zip 2>/dev/null
+git clone git@github.com:fguillot/$APP.git
+rm -rf $APP/data/*.sqlite $APP/.git $APP/.gitignore $APP/scripts $APP/examples
+sed -i.bak s/master/$VERSION/g $APP/models/base.php && rm -f $APP/models/*.bak
+zip -r $APP-$VERSION.zip $APP
+mv $APP-*.zip ~/Devel/websites/$APP
+rm -rf /tmp/$APP 2>/dev/null
+
diff --git a/scripts/make-tag.sh b/scripts/make-tag.sh
new file mode 100755
index 00000000..108444fc
--- /dev/null
+++ b/scripts/make-tag.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+VERSION=$1
+
+git tag -a v$VERSION -m "Version $VERSION"
+git push origin v$VERSION
diff --git a/templates/config_index.php b/templates/config_index.php
index 43145caf..72edc4ad 100644
--- a/templates/config_index.php
+++ b/templates/config_index.php
@@ -36,6 +36,10 @@
<?= t('Official website:') ?>
<a href="http://kanboard.net/" target="_blank">http://kanboard.net/</a>
</li>
+ <li>
+ <?= t('Application version:') ?>
+ <?= Model\Base::APP_VERSION ?>
+ </li>
</ul>
</section>
<?php endif ?>