summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaka Kranjc2008-08-21 16:56:01 +0000
committerJaka Kranjc2008-08-21 17:08:55 +0000
commit41be7b0d3fda62b7468daf5327206dde19d5a1f9 (patch)
treefff8dc10d595d5dbfc445a841d2e34bbc2ee106e
parente98f644782533ac3b10a33e8c546c9f544c3742d (diff)
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. :)
-rw-r--r--ChangeLog4
-rwxr-xr-xFUNCTIONS25
2 files changed, 29 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ba4d437f33..f73f6321ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-21 Jaka Kranjc <lynxlynxlynx@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@vabo.cz>
* video/luvcview: new spell, Sdl video Usb Video Class grabber
diff --git a/FUNCTIONS b/FUNCTIONS
index f854259a4a..7e3ae66a97 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
#---------------------------------------------------------------------