sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master z-rejected grimoire by Jaka Kranjc (8bd1026f2ebb317e6027f0b3edf61afe2f011e28)
- From: Jaka Kranjc <scm AT mail.sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master z-rejected grimoire by Jaka Kranjc (8bd1026f2ebb317e6027f0b3edf61afe2f011e28)
- Date: Fri, 2 Feb 2007 10:13:23 -0600
GIT changes to master z-rejected grimoire by Jaka Kranjc
<lynxlynxlynx AT sourcemage.org>:
z-editors/pico/DETAILS | 1 +
z-editors/pico/HISTORY | 5 +++++
z-editors/pico/INSTALL | 8 +++++++-
z-editors/pico/profile.d/editor.sh | 10 ++++++++++
4 files changed, 23 insertions(+), 1 deletion(-)
New commits:
commit 8bd1026f2ebb317e6027f0b3edf61afe2f011e28
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/z-editors/pico/DETAILS b/z-editors/pico/DETAILS
index 9b4b311..ad48d13 100755
--- a/z-editors/pico/DETAILS
+++ b/z-editors/pico/DETAILS
@@ -20,6 +20,7 @@ SOURCE_DIRECTORY=${BUILD_DIRECTORY}/pine
ENTERED=20010922
UPDATED=20030810
KEYWORDS="editors"
+ PATCHLEVEL=1
SHORT="pico is a small text editor (part of pine)."
cat << EOF
Pine is a tool for reading, sending, and managing electronic messages.
diff --git a/z-editors/pico/HISTORY b/z-editors/pico/HISTORY
index 781d134..0686724 100644
--- a/z-editors/pico/HISTORY
+++ b/z-editors/pico/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-09-21 Juuso Alasuutari <iuso AT sourcemage.org>
* PROVIDES: [automated] Fixed invalid entries.
diff --git a/z-editors/pico/INSTALL b/z-editors/pico/INSTALL
index 5fb4501..99901ba 100755
--- a/z-editors/pico/INSTALL
+++ b/z-editors/pico/INSTALL
@@ -5,4 +5,10 @@ cd ../doc &&
for MANPAGE in `ls pico*.1`; do
gzip -9 ${MANPAGE} &&
cp ${MANPAGE}.gz ${INSTALL_ROOT}/usr/share/man/man1
-done
+done &&
+
+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/z-editors/pico/profile.d/editor.sh
b/z-editors/pico/profile.d/editor.sh
new file mode 100644
index 0000000..0d2312c
--- /dev/null
+++ b/z-editors/pico/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="pico"
+fi
+
+export EDITOR
+
- [SM-Commit] GIT changes to master z-rejected grimoire by Jaka Kranjc (8bd1026f2ebb317e6027f0b3edf61afe2f011e28), Jaka Kranjc, 02/02/2007
Archive powered by MHonArc 2.6.24.