include revision id in package comment

This commit is contained in:
Eon S. Jeon 2019-03-29 12:03:06 +09:00
parent 36853a424f
commit 58d7b4f1a5
2 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,9 @@ $(FILE_SCRIPT): $(SRC)
$(FILE_META): res/metadata.desktop
@mkdir -vp `dirname $(FILE_META)`
sed "s/0\.0/$(PACKAGE_VER)/" $< > $(FILE_META)
sed "s/\$$VER/$(PACKAGE_VER)/" $< \
| sed "s/\$$REV/`git rev-parse HEAD | cut -b-7`/" \
> $(FILE_META)
$(FILE_QML): res/main.qml
@mkdir -vp `dirname $@`

View File

@ -1,6 +1,6 @@
[Desktop Entry]
Name=Krohnkite
Comment=A dynamic tiling script for KWin
Comment=A dynamic tiling script for KWin ($REV)
#Icon=
X-Plasma-API=declarativescript
@ -9,7 +9,7 @@ X-Plasma-MainScript=ui/main.qml
X-KDE-PluginInfo-Author=Eon S. Jeon
X-KDE-PluginInfo-Email=esjeon@hyunmu.am
X-KDE-PluginInfo-Name=krohnkite
X-KDE-PluginInfo-Version=0.0
X-KDE-PluginInfo-Version=$VER
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=MIT