Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (41be7b0d3fda62b7468daf5327206dde19d5a1f9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (41be7b0d3fda62b7468daf5327206dde19d5a1f9)
  • Date: Thu, 21 Aug 2008 10:10:21 -0500

GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 4 ++++
FUNCTIONS | 25 +++++++++++++++++++++++++
2 files changed, 29 insertions(+)

New commits:
commit 41be7b0d3fda62b7468daf5327206dde19d5a1f9
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

FUNCTIONS: added default_grimoire_post_install which takes care of
moving bad paths into the proper place (currently man and info)

What this means is that **nothing** will install to
/usr/{,local}{man,info}
anymore! Other suggestions are welcome (other locals?).

Please test. :)

diff --git a/ChangeLog b/ChangeLog
index ba4d437..f73f632 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-21 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * FUNCTIONS: added default_grimoire_post_install which takes care of
+ moving bad paths into the proper place (currently man and info)
+
2008-08-21 Ladislav Hagara <hgr AT vabo.cz>
* video/luvcview: new spell, Sdl video Usb Video Class grabber

diff --git a/FUNCTIONS b/FUNCTIONS
index f854259..7e3ae66 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -3,6 +3,31 @@
. $GRIMOIRE/config_query_multi.function

#---------------------------------------------------------------------
+## This function automatically fixes any known bad paths
+#---------------------------------------------------------------------
+function default_grimoire_post_install () {
+ real_default_sorcery_post_install && # currently a no-op
+ pushd TRANSL &> /dev/null
+ if [[ -d usr/man ]]; then
+ echo Fixing bad install path: /usr/man &&
+ mv -v usr/man usr/share
+ fi &&
+ if [[ -d usr/info ]]; then
+ echo Fixing bad install path: /usr/info &&
+ mv -v usr/info usr/share
+ fi &&
+ if [[ -d usr/local/man ]]; then
+ echo Fixing bad install path: /usr/local/man &&
+ mv -v usr/local/man usr/share
+ fi &&
+ if [[ -d usr/local/info ]]; then
+ echo Fixing bad install path: /usr/local/info &&
+ mv -v usr/local/info usr/share
+ fi &&
+ popd &> /dev/null
+}
+
+#---------------------------------------------------------------------
## Replaces sorcerys default_pre_build with a custom version using
## the invoke_gcc function from libgcc #10641
#---------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page