diff options
author | Jaka Kranjc | 2008-08-21 16:56:01 +0000 |
---|---|---|
committer | Jaka Kranjc | 2008-08-21 17:08:55 +0000 |
commit | 41be7b0d3fda62b7468daf5327206dde19d5a1f9 (patch) | |
tree | fff8dc10d595d5dbfc445a841d2e34bbc2ee106e | |
parent | e98f644782533ac3b10a33e8c546c9f544c3742d (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-- | ChangeLog | 4 | ||||
-rwxr-xr-x | FUNCTIONS | 25 |
2 files changed, 29 insertions, 0 deletions
@@ -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 @@ -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 #--------------------------------------------------------------------- |