File: manpages

package info (click to toggle)
adduser 3.154
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,584 kB
  • sloc: perl: 9,508; sh: 189; makefile: 22
file content (27 lines) | stat: -rwxr-xr-x 783 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

cat <<EOMAN
doc/adduser.8
doc/adduser.conf.5
doc/adduser.local.8
doc/deluser.8
doc/deluser.conf.5
EOMAN

for MPLANG in $(find doc/ -maxdepth 1 -type f -name '*.??.?' -printf '%f\n' | sed 's/.*\.\(..\)\../\1/' |sort -u); do
    if [ -e "doc/adduser.${MPLANG}.8" ]; then
        printf "doc/adduser.%s.8\\n" "${MPLANG}"
    fi
    if [ -e "doc/adduser.conf.${MPLANG}.5" ]; then
        printf "doc/adduser.conf.%s.5\\n" "${MPLANG}"
    fi
    if [ -e "doc/adduser.local.${MPLANG}.8" ]; then
        printf "doc/adduser.local.%s.8\\n" "${MPLANG}"
    fi
    if [ -e "doc/deluser.${MPLANG}.8" ]; then
        printf "doc/deluser.%s.8\\n" "${MPLANG}"
    fi
    if [ -e "doc/deluser.conf.${MPLANG}.5" ]; then
        printf "doc/deluser.conf.%s.5\\n" "${MPLANG}"
    fi
done