diff options
author | eroen <eroen@occam.eroen.eu> | 2014-09-08 05:21:36 +0200 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2014-09-08 05:21:36 +0200 |
commit | 69c9f02ecdbd5445cd7ccd3e4e683d26d4f58f2e (patch) | |
tree | 75913ae0a5b93ed411b6dd1d1a366213ea873057 | |
parent | Implement remove (diff) | |
download | eselect-wine-69c9f02ecdbd5445cd7ccd3e4e683d26d4f58f2e.tar.gz eselect-wine-69c9f02ecdbd5445cd7ccd3e4e683d26d4f58f2e.tar.bz2 eselect-wine-69c9f02ecdbd5445cd7ccd3e4e683d26d4f58f2e.zip |
Implement man page support
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | wine.eselect | 21 |
2 files changed, 20 insertions, 2 deletions
@@ -1 +0,0 @@ -- Man pages diff --git a/wine.eselect b/wine.eselect index 5328407..6d5c239 100644 --- a/wine.eselect +++ b/wine.eselect @@ -10,6 +10,12 @@ BINDIR=/usr/bin EXECUTABLES=(msiexec notepad regedit regsvr32 widl wine wine64 wine64-preloader wineboot winebuild winecfg wineconsole winecpp winedbg winefile wineg++ winegcc winemine winepath wine-preloader wineserver wmc wrc) +MANDIR=/usr/share/man +MANPAGES=( man1/widl.1 man1/winebuild.1 man1/winegcc.1 man1/wineg++.1 +man1/winecpp.1 man1/wineserver.1 man1/wine.1 man1/wmc.1 man1/wrc.1 +man1/msiexec.1 man1/notepad.1 man1/regedit.1 man1/regsvr32.1 man1/wineboot.1 +man1/winecfg.1 man1/wineconsole.1 man1/winedbg.1 man1/winefile.1 +man1/winemine.1 man1/winepath.1) # TODO: # sort function for kernel versions, to be used in a pipe @@ -43,10 +49,17 @@ find_targets() { # remove wine symlinks remove_symlinks() { for exe in "${EXECUTABLES[@]}"; do - if [[ -L "${EROOT}${BINDIR}/${exe}" ]]; then + if [[ -L ${EROOT}${BINDIR}/${exe} ]]; then rm "${EROOT}${BINDIR}/${exe}" || return 1 fi done + + for page in "${MANPAGES[@]}"; do + if [[ -L ${EROOT}/${MANDIR}/${page} ]]; then + rm "${EROOT}/${MANDIR}/${page}" || return 1 + fi + done + return 0 } @@ -70,6 +83,12 @@ set_symlinks() { fi done + for page in "${MANPAGES[@]}"; do + if [[ -f ${EROOT}${PREFIXDIR}/${target}/man/${page} ]]; then + ln -s "${EROOT}${PREFIXDIR}/${target}/man/${page}" "${EROOT}/${MANDIR}/${page}" || return 1 + fi + done + else die -q "Target \"$1\" doesn't appear to be valid!" fi |