[Cxplorer-cvs 01085] CVS update: cxplorer/config

Back to archive index

Yasumichi Akahoshi yasum****@users*****
2005年 5月 7日 (土) 20:34:28 JST


Index: cxplorer/config/Makefile.am
diff -u cxplorer/config/Makefile.am:1.3 cxplorer/config/Makefile.am:1.4
--- cxplorer/config/Makefile.am:1.3	Wed Mar 30 00:19:39 2005
+++ cxplorer/config/Makefile.am	Sat May  7 20:34:28 2005
@@ -4,8 +4,10 @@
 ## If you don't want it to overwrite it,
 ## 	Please disable it in the Anjuta project configuration
 
-cxplorer_confdir = `pkg-config --variable=sysconfdir libcxp`/cxp/cxplorer
+schemadir   = @GCONF_SCHEMA_FILE_DIR@
+schema_DATA = cxplorer.schemas
 
-cxplorer_conf_DATA = main
+install-data-local:
+	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) gconftool-2 --makefile-install-rule $(schema_DATA)
 
-EXTRA_DIST = $(cxplorer_conf_DATA)
+EXTRA_DIST = $(schema_DATA)
Index: cxplorer/config/Makefile.in
diff -u cxplorer/config/Makefile.in:1.4 cxplorer/config/Makefile.in:1.5
--- cxplorer/config/Makefile.in:1.4	Sat Apr  9 02:01:39 2005
+++ cxplorer/config/Makefile.in	Sat May  7 20:34:28 2005
@@ -77,6 +77,8 @@
 F77 = @F77@
 GCJ = @GCJ@
 GCJFLAGS = @GCJFLAGS@
+GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
+GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
 GMOFILES = @GMOFILES@
 GMSGFMT = @GMSGFMT@
@@ -135,15 +137,14 @@
 USE_NLS = @USE_NLS@
 VERSION = @VERSION@
 
-cxplorer_confdir = `pkg-config --variable=sysconfdir libcxp`/cxp/cxplorer
+schemadir = @GCONF_SCHEMA_FILE_DIR@
+schema_DATA = cxplorer.schemas
 
-cxplorer_conf_DATA = main
-
-EXTRA_DIST = $(cxplorer_conf_DATA)
+EXTRA_DIST = $(schema_DATA)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 
-DATA =  $(cxplorer_conf_DATA)
+DATA =  $(schema_DATA)
 
 DIST_COMMON =  Makefile.am Makefile.in
 
@@ -162,23 +163,23 @@
 	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
 
-install-cxplorer_confDATA: $(cxplorer_conf_DATA)
+install-schemaDATA: $(schema_DATA)
 	@$(NORMAL_INSTALL)
-	$(mkinstalldirs) $(DESTDIR)$(cxplorer_confdir)
-	@list='$(cxplorer_conf_DATA)'; for p in $$list; do \
+	$(mkinstalldirs) $(DESTDIR)$(schemadir)
+	@list='$(schema_DATA)'; for p in $$list; do \
 	  if test -f $(srcdir)/$$p; then \
-	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(cxplorer_confdir)/$$p"; \
-	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(cxplorer_confdir)/$$p; \
+	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(schemadir)/$$p"; \
+	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(schemadir)/$$p; \
 	  else if test -f $$p; then \
-	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(cxplorer_confdir)/$$p"; \
-	    $(INSTALL_DATA) $$p $(DESTDIR)$(cxplorer_confdir)/$$p; \
+	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(schemadir)/$$p"; \
+	    $(INSTALL_DATA) $$p $(DESTDIR)$(schemadir)/$$p; \
 	  fi; fi; \
 	done
 
-uninstall-cxplorer_confDATA:
+uninstall-schemaDATA:
 	@$(NORMAL_UNINSTALL)
-	list='$(cxplorer_conf_DATA)'; for p in $$list; do \
-	  rm -f $(DESTDIR)$(cxplorer_confdir)/$$p; \
+	list='$(schema_DATA)'; for p in $$list; do \
+	  rm -f $(DESTDIR)$(schemadir)/$$p; \
 	done
 tags: TAGS
 TAGS:
@@ -215,20 +216,20 @@
 install-exec-am:
 install-exec: install-exec-am
 
-install-data-am: install-cxplorer_confDATA
+install-data-am: install-schemaDATA install-data-local
 install-data: install-data-am
 
 install-am: all-am
 	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 install: install-am
-uninstall-am: uninstall-cxplorer_confDATA
+uninstall-am: uninstall-schemaDATA
 uninstall: uninstall-am
 all-am: Makefile $(DATA)
 all-redirect: all-am
 install-strip:
 	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
 installdirs:
-	$(mkinstalldirs)  $(DESTDIR)$(cxplorer_confdir)
+	$(mkinstalldirs)  $(DESTDIR)$(schemadir)
 
 
 mostlyclean-generic:
@@ -259,13 +260,17 @@
 
 maintainer-clean: maintainer-clean-am
 
-.PHONY: uninstall-cxplorer_confDATA install-cxplorer_confDATA tags \
-distdir info-am info dvi-am dvi check check-am installcheck-am \
-installcheck install-exec-am install-exec install-data-am install-data \
-install-am install uninstall-am uninstall all-redirect all-am all \
-installdirs mostlyclean-generic distclean-generic clean-generic \
-maintainer-clean-generic clean mostlyclean distclean maintainer-clean
+.PHONY: uninstall-schemaDATA install-schemaDATA tags distdir info-am \
+info dvi-am dvi check check-am installcheck-am installcheck \
+install-exec-am install-exec install-data-local install-data-am \
+install-data install-am install uninstall-am uninstall all-redirect \
+all-am all installdirs mostlyclean-generic distclean-generic \
+clean-generic maintainer-clean-generic clean mostlyclean distclean \
+maintainer-clean
+
 
+install-data-local:
+	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) gconftool-2 --makefile-install-rule $(schema_DATA)
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
Index: cxplorer/config/cxplorer.schemas
diff -u /dev/null cxplorer/config/cxplorer.schemas:1.1
--- /dev/null	Sat May  7 20:34:28 2005
+++ cxplorer/config/cxplorer.schemas	Sat May  7 20:34:28 2005
@@ -0,0 +1,59 @@
+<gconfschemafile>
+	<schemalist>
+		<schema>
+			<key>/schemas/apps/cxp/cxplorer/ShowDotFile</key>
+			<applyto>/apps/cxp/cxplorer/ShowDotFile</applyto>
+			<owner>cxplorer</owner>
+			<type>bool</type>
+			<default>FALSE</default>
+			<locale name="C">
+				<short>Show dot file</short>
+				<long>Whether the dot file is displayed or not?</long>
+			</locale>
+		</schema>
+		<schema>
+			<key>/schemas/apps/cxp/cxplorer/PreviewText</key>
+			<applyto>/apps/cxp/cxplorer/PreviewText</applyto>
+			<owner>cxplorer</owner>
+			<type>string</type>
+			<default>head --lines 20</default>
+			<locale name="C">
+				<short>command of preview text file</short>
+				<long>It is a command to obtain the preview as for the text file.</long>
+			</locale>
+		</schema>
+		<schema>
+			<key>/schemas/apps/cxp/cxplorer/PreviewBinary</key>
+			<applyto>/apps/cxp/cxplorer/PreviewBinary</applyto>
+			<owner>cxplorer</owner>
+			<type>string</type>
+			<default>od -t x1z -A x -N 112 --width=16</default>
+			<locale name="C">
+				<short>command of preview binary file</short>
+				<long>It is a command to obtain the preview as for the binary file.</long>
+			</locale>
+		</schema>
+		<schema>
+			<key>/schemas/apps/cxp/cxplorer/PreviewDir</key>
+			<applyto>/apps/cxp/cxplorer/PreviewDir</applyto>
+			<owner>cxplorer</owner>
+			<type>string</type>
+			<default>ls</default>
+			<locale name="C">
+				<short>command of preview directory</short>
+				<long>It is a command to obtain the preview as for the directory.</long>
+			</locale>
+		</schema>
+		<schema>
+			<key>/schemas/apps/cxp/cxplorer/AttachCommand</key>
+			<applyto>/apps/cxp/cxplorer/AttachCommand</applyto>
+			<owner>cxplorer</owner>
+			<type>string</type>
+			<default>sylpheed --attach %s</default>
+			<locale name="C">
+				<short>Command to send file with mail</short>
+				<long>Command to send file with mail</long>
+			</locale>
+		</schema>
+	</schemalist>  
+</gconfschemafile>
Index: cxplorer/config/main
diff -u cxplorer/config/main:1.1 cxplorer/config/main:removed
--- cxplorer/config/main:1.1	Mon Mar 28 22:44:30 2005
+++ cxplorer/config/main	Sat May  7 20:34:28 2005
@@ -1,5 +0,0 @@
-PreviewDir=ls
-PreviewText=head --lines 20
-ShowDotFile=0
-AttachCommand=sylpheed --attach %s 
-PreviewBinary=od -t x1z -A x -N 112 --width=16


Cxplorer-cvs メーリングリストの案内
Back to archive index