Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (722546b6abaf4afd7b821740e8e0f8e46226bec4)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (722546b6abaf4afd7b821740e8e0f8e46226bec4)
  • Date: Tue, 17 Apr 2018 00:26:00 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

shell-term-fm/st/CONFIGURE | 3 +++
shell-term-fm/st/HISTORY | 4 ++++
shell-term-fm/st/INSTALL | 5 +++++
shell-term-fm/st/PRE_BUILD | 14 +++++++++++++-
4 files changed, 25 insertions(+), 1 deletion(-)

New commits:
commit 722546b6abaf4afd7b821740e8e0f8e46226bec4
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

shell-term-fm/st: added ability to edit/store custom configuration

diff --git a/shell-term-fm/st/CONFIGURE b/shell-term-fm/st/CONFIGURE
new file mode 100755
index 0000000..89c9d41
--- /dev/null
+++ b/shell-term-fm/st/CONFIGURE
@@ -0,0 +1,3 @@
+message "st does not use a config file, you might want to customize it now"
&&
+message "Your custom config will be saved to
${INSTALL_ROOT}/usr/share/doc/st/" &&
+config_query ST_CONFIG "Do you wish to use a custom config.def.h?" n
diff --git a/shell-term-fm/st/HISTORY b/shell-term-fm/st/HISTORY
index 36f2029..fd24237 100644
--- a/shell-term-fm/st/HISTORY
+++ b/shell-term-fm/st/HISTORY
@@ -1,3 +1,7 @@
+2018-04-16 Pavel Vinogradov <public AT sourcemage.org>
+ * CONFIGURE, INSTALL, PRE_BUILD: added ability to edit/store custom
+ configuration
+
2016-10-19 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 0.7
* patches/st-0.6-hidecursor.diff,
diff --git a/shell-term-fm/st/INSTALL b/shell-term-fm/st/INSTALL
new file mode 100755
index 0000000..eaec9ef
--- /dev/null
+++ b/shell-term-fm/st/INSTALL
@@ -0,0 +1,5 @@
+default_install &&
+if [[ "${ST_CONFIG}" == "y" ]]; then
+ mkdir -p ${INSTALL_ROOT}/usr/share/doc/st &&
+ cp config.def.h ${INSTALL_ROOT}/usr/share/doc/st/
+fi
diff --git a/shell-term-fm/st/PRE_BUILD b/shell-term-fm/st/PRE_BUILD
index 886a469..b89bebe 100755
--- a/shell-term-fm/st/PRE_BUILD
+++ b/shell-term-fm/st/PRE_BUILD
@@ -7,4 +7,16 @@ for i in "$SPELL_DIRECTORY"/patches/*; do
if query "Apply ${i##*/} ($desc)?" n; then
patch -sp1 -i "$i"
fi
-done
+done &&
+
+if [[ "${ST_CONFIG}" == "y" ]]; then
+ if [[ -e ${INSTALL_ROOT}/usr/share/doc/st/config.def.h ]]; then
+ cp ${INSTALL_ROOT}/usr/share/doc/st/config.def.h ./
+ fi &&
+ if query 'Do you want to edit your config now?' n; then
+ if [ -z"$EDITOR" ]; then
+ . /etc/profile.d/editor.sh
+ fi
+ ${EDITOR:-nano} config.def.h
+ fi
+fi



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (722546b6abaf4afd7b821740e8e0f8e46226bec4), Pavel Vinogradov, 04/16/2018

Archive powered by MHonArc 2.6.24.

Top of Page