Commits

Erik Grinaker committed 2edd2f7

generate revelation.desktop with proper version from autoconf

Comments (0)

Files changed (3)

data/mime/Makefile.am

 #
 
 desktopdir		= $(datadir)/applications
-dist_desktop_DATA	= revelation.desktop
+nodist_desktop_DATA	= revelation.desktop
 
 mimedir			= $(datadir)/mime/packages
 dist_mime_DATA		= revelation.xml
 
+CLEANFILES		= revelation.desktop
+EXTRA_DIST		= revelation.desktop.in
+
+
+revelation.desktop: revelation.desktop.in
+	sed \
+		-e "s|\@VERSION\@|$(VERSION)|" \
+		revelation.desktop.in > revelation.desktop
+
 
 install-data-hook:
 if HAVE_FDO_MIME

data/mime/revelation.desktop

-[Desktop Entry]
-Version=0.4.8
-Encoding=UTF-8
-Name=Revelation Password Manager
-Name[fr]=Gestionnaire de mots de passe Revelation
-GenericName=Password Manager
-GenericName[en_US]=Password Manager
-GenericName[fr]=Gestionnaire de mots de passe
-Comment=Organize and secure your passwords
-Comment[fr]=Organise et sécurise vos mots de passe
-Exec=revelation
-Icon=revelation
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Utility;
-StartupNotify=true
-MimeType=application/x-revelation;
-

data/mime/revelation.desktop.in

+[Desktop Entry]
+Version=@VERSION@
+Encoding=UTF-8
+Name=Revelation Password Manager
+Name[fr]=Gestionnaire de mots de passe Revelation
+GenericName=Password Manager
+GenericName[en_US]=Password Manager
+GenericName[fr]=Gestionnaire de mots de passe
+Comment=Organize and secure your passwords
+Comment[fr]=Organise et sécurise vos mots de passe
+Exec=revelation
+Icon=revelation
+Terminal=false
+Type=Application
+Categories=GNOME;Application;Utility;
+StartupNotify=true
+MimeType=application/x-revelation;
+