mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add mime files for gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3209 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9e75d61719
commit
8854cbaf16
@ -9,3 +9,4 @@ glade-support-gnc-dialogs.c
|
||||
#glade-cb-gnc-dialogs.h
|
||||
#glade-gnc-dialogs.h
|
||||
#glade-support-gnc-dialogs.h
|
||||
gnucash.keys
|
||||
|
@ -43,6 +43,11 @@ gnomeappdir = ${datadir}/gnome/apps/Applications
|
||||
|
||||
gnomeapp_DATA = gnucash.desktop
|
||||
|
||||
appicondir = $(datadir)/pixmaps
|
||||
|
||||
mimedir = $(datadir)/mime-info
|
||||
mime_DATA = gnucash.keys gnucash.mime
|
||||
|
||||
noinst_HEADERS = \
|
||||
account-tree.h \
|
||||
cursors.h \
|
||||
@ -92,9 +97,14 @@ GLADE_FILES = \
|
||||
EXTRA_DIST = \
|
||||
.cvsignore \
|
||||
gnc-dialogs.glade \
|
||||
gnucash.desktop
|
||||
gnucash.desktop \
|
||||
gnucash.keys.in \
|
||||
gnucash.mime
|
||||
|
||||
CFLAGS = @CFLAGS@ ${G_WRAP_COMPILE_ARGS} ${GNOME_PRINT_CFLAGS} ${GTKHTML_CFLAGS}
|
||||
CFLAGS = @CFLAGS@ \
|
||||
${G_WRAP_COMPILE_ARGS} \
|
||||
${GNOME_PRINT_CFLAGS} \
|
||||
${GTKHTML_CFLAGS}
|
||||
|
||||
INCLUDES = \
|
||||
-I${top_srcdir}/src \
|
||||
@ -106,3 +116,15 @@ INCLUDES = \
|
||||
-I${top_srcdir}/src/register/gnome \
|
||||
${GNOME_INCLUDEDIR} \
|
||||
${GUILE_INCS}
|
||||
|
||||
|
||||
## We borrow guile's convention and use @-...-@ as the substitution
|
||||
## brackets here, instead of the usual @...@. This prevents autoconf
|
||||
## from substituting the values directly into the left-hand sides of
|
||||
## the sed substitutions.
|
||||
gnucash.keys: gnucash.keys.in
|
||||
rm -f $@.tmp
|
||||
sed < $@.in > $@.tmp \
|
||||
-e 's:@-icondir-@:${appicondir}:g'
|
||||
chmod +x $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
3
src/gnome/gnucash.keys.in
Normal file
3
src/gnome/gnucash.keys.in
Normal file
@ -0,0 +1,3 @@
|
||||
application/x-gnucash:
|
||||
open=gnucash %f
|
||||
view=gnucash %f
|
2
src/gnome/gnucash.mime
Normal file
2
src/gnome/gnucash.mime
Normal file
@ -0,0 +1,2 @@
|
||||
application/x-gnucash
|
||||
ext: xac gnc gnucash
|
Loading…
Reference in New Issue
Block a user