summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorJaka Kranjc2008-08-21 16:56:01 +0000
committerJaka Kranjc2008-08-21 17:08:55 +0000
commit41be7b0d3fda62b7468daf5327206dde19d5a1f9 (patch)
treefff8dc10d595d5dbfc445a841d2e34bbc2ee106e /FUNCTIONS
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. :)
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS25
1 files changed, 25 insertions, 0 deletions
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
#---------------------------------------------------------------------