From faf902bd27df814fd96fd5c933be52379b3260d6 Mon Sep 17 00:00:00 2001 From: ueno Date: Fri, 27 Sep 2002 06:40:14 +0000 Subject: [PATCH] * etc/gnu-emacs-user-config.in: New file. * etc/sample.dot.emacs.in: Removed. * etc/Makefile.am: Generate gnu-emacs-user-config script. --- etc/Makefile.am | 11 ++++++----- etc/gnu-emacs-user-config.in | 10 ++++++++++ etc/sample.dot.emacs.in | 5 ----- 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 etc/gnu-emacs-user-config.in delete mode 100644 etc/sample.dot.emacs.in diff --git a/etc/Makefile.am b/etc/Makefile.am index ffb7083..5270e87 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -1,10 +1,11 @@ SUBDIRS = icons po styles -EXTRA_DIST = sample.dot.emacs.in -DISTCLEANFILES = sample.dot.emacs -pkgdata_DATA = sample.dot.emacs -sample.dot.emacs: sample.dot.emacs.in - sed -e 's!@pkgdatadir@!$(pkgdatadir)!g' $< > $@ +EXTRA_DIST = gnu-emacs-user-config.in +DISTCLEANFILES = gnu-emacs-user-config +pkgdata_DATA = gnu-emacs-user-config +gnu-emacs-user-config: gnu-emacs-user-config.in + sed 's!@pkgdatadir@!$(pkgdatadir)!g' $< > $@ + chmod +x $@ package: install-package: package diff --git a/etc/gnu-emacs-user-config.in b/etc/gnu-emacs-user-config.in new file mode 100644 index 0000000..6635cbf --- /dev/null +++ b/etc/gnu-emacs-user-config.in @@ -0,0 +1,10 @@ +EMACS=${EMACS-emacs} + +custom=`cat <<'EOF' +(custom-set-variables + '(liece-intl-catalogue-directory "@pkgdatadir@/locale" nil (liece)) + '(liece-window-style-directory "@pkgdatadir@/styles" nil (liece)) + '(liece-icon-directory "@pkgdatadir@/icons" nil (liece))) +EOF` + +$EMACS -eval $custom -l cus-edit -l $< -f Custom-save diff --git a/etc/sample.dot.emacs.in b/etc/sample.dot.emacs.in deleted file mode 100644 index bb3872e..0000000 --- a/etc/sample.dot.emacs.in +++ /dev/null @@ -1,5 +0,0 @@ -;;; -*- emacs-lisp -*- - -(setq liece-intl-catalogue-directory "@pkgdatadir@/locale" - liece-window-style-directory "@pkgdatadir@/styles" - liece-icon-directory "@pkgdatadir@/icons") -- 1.7.10.4