Add utility shell-scripts
This commit is contained in:
@@ -167,4 +167,5 @@ return array(
|
|||||||
'Backlog' => 'En attente',
|
'Backlog' => 'En attente',
|
||||||
'Work in progress' => 'En cours',
|
'Work in progress' => 'En cours',
|
||||||
'Done' => 'Terminé',
|
'Done' => 'Terminé',
|
||||||
|
'Application version: ' => 'Version de l\'application :'
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ require __DIR__.'/schema.php';
|
|||||||
|
|
||||||
abstract class Base
|
abstract class Base
|
||||||
{
|
{
|
||||||
|
const APP_VERSION = 'master';
|
||||||
const DB_VERSION = 1;
|
const DB_VERSION = 1;
|
||||||
const DB_FILENAME = 'data/db.sqlite';
|
const DB_FILENAME = 'data/db.sqlite';
|
||||||
|
|
||||||
|
|||||||
14
scripts/make-archive.sh
Executable file
14
scripts/make-archive.sh
Executable file
@@ -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
|
||||||
|
|
||||||
6
scripts/make-tag.sh
Executable file
6
scripts/make-tag.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
|
git tag -a v$VERSION -m "Version $VERSION"
|
||||||
|
git push origin v$VERSION
|
||||||
@@ -36,6 +36,10 @@
|
|||||||
<?= t('Official website:') ?>
|
<?= t('Official website:') ?>
|
||||||
<a href="http://kanboard.net/" target="_blank">http://kanboard.net/</a>
|
<a href="http://kanboard.net/" target="_blank">http://kanboard.net/</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= t('Application version:') ?>
|
||||||
|
<?= Model\Base::APP_VERSION ?>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user