GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:<snip>
New commits:<snip>
commit b8022b35580d12123db37612a833022342e6226a
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
fixing bug #10353: making each EDITOR provider provides their own profile script and removing it from bash
diff --git a/editors/diakonos/DETAILS b/editors/diakonos/DETAILS
index 3b87ff8..acff9e7 100755
--- a/editors/diakonos/DETAILS
+++ b/editors/diakonos/DETAILS
@@ -8,6 +8,7 @@ SOURCE_DIRECTORY=${BUILD_DIRECTORY}/${SP
ENTERED=20050418
LICENSE[0]=GPL
KEYWORDS="editors"
+ PATCHLEVEL=1
SHORT="Diakonos is a customizable, usable console-based text editor."
cat << EOF
Diakonos is a customizable, usable console-based text editor. I made it with the intention
diff --git a/editors/diakonos/HISTORY b/editors/diakonos/HISTORY
index a8ab880..3a32a30 100644
--- a/editors/diakonos/HISTORY
+++ b/editors/diakonos/HISTORY
@@ -1,3 +1,8 @@
+2007-01-16 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * profile.d/editor.sh: added
+ * INSTALL: install editor.sh
+ * DETAILS: PATCHLEVEL++
+
2006-10-06 Pieter Lenaerts <e-type AT sourcemage.org>
* DETAILS: updated to 0.8.2
diff --git a/editors/diakonos/INSTALL b/editors/diakonos/INSTALL
index 2f9aab6..c5f371a 100755
--- a/editors/diakonos/INSTALL
+++ b/editors/diakonos/INSTALL
@@ -1,3 +1,9 @@
ruby setup.rb \
--confdir=/share/diakonos \
- --prefix=${INSTALL_ROOT}/usr
+ --prefix=${INSTALL_ROOT}/usr &&
+
+mkdir -p $INSTALL_ROOT/etc/profile.d/ &&
+if install_config_file $SCRIPT_DIRECTORY/profile.d/editor.sh \
+ $INSTALL_ROOT/etc/profile.d/editor.sh; then
+ chmod 0755 $INSTALL_ROOT/etc/profile.d/editor.sh
+fi
diff --git a/editors/diakonos/profile.d/editor.sh b/editors/diakonos/profile.d/editor.sh
new file mode 100644
index 0000000..6e53f0f
--- /dev/null
+++ b/editors/diakonos/profile.d/editor.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# First check if this variable is already set
+# then if not set, check it (maybe), then set it
+
+if [ -z "$EDITOR" ] ; then
+ EDITOR="diakonos"
+fi
+
+export EDITOR
+
Archive powered by MHonArc 2.6.24.