equal
deleted
inserted
replaced
41 echo "Sorry, something went wrong. Please file a bug:" |
41 echo "Sorry, something went wrong. Please file a bug:" |
42 echo "https://sourceforge.net/tracker/?group_id=213727" |
42 echo "https://sourceforge.net/tracker/?group_id=213727" |
43 exit 1 |
43 exit 1 |
44 fi |
44 fi |
45 |
45 |
46 python setup.py -q install --prefix ${PREFIX} |
46 python setup.py -q install --force --prefix ${PREFIX} |
47 python setup.py clean --all >/dev/null |
47 python setup.py clean --all >/dev/null |
48 |
48 |
49 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin |
49 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin |
50 |
50 |
51 [ -d ${LOCALE_DIR} ] || mkdir -m 0755 -p ${LOCALE_DIR} |
51 [ -d ${LOCALE_DIR} ] || mkdir -m 0755 -p ${LOCALE_DIR} |
55 ddir=${LOCALE_DIR}/${lang}/LC_MESSAGES |
55 ddir=${LOCALE_DIR}/${lang}/LC_MESSAGES |
56 [ -d ${ddir} ] || mkdir -m 0755 -p ${ddir} |
56 [ -d ${ddir} ] || mkdir -m 0755 -p ${ddir} |
57 msgfmt -o ${LOCALE_DIR}/${lang}/LC_MESSAGES/vmm.mo ${po} |
57 msgfmt -o ${LOCALE_DIR}/${lang}/LC_MESSAGES/vmm.mo ${po} |
58 done |
58 done |
59 cd - >/dev/null |
59 cd - >/dev/null |
60 |
|
61 # remove misplaced manual pages |
|
62 if [ -f /usr/local/share/man/man1/vmm.1 ]; then |
|
63 rm -f /usr/local/share/man/man1/vmm.1 |
|
64 fi |
|
65 if [ -f /usr/local/share/man/man5/vmm.cfg.5 ]; then |
|
66 rm -f /usr/local/share/man/man5/vmm.cfg.5 |
|
67 fi |
|
68 |
60 |
69 # install manual pages |
61 # install manual pages |
70 cd man |
62 cd man |
71 [ -d ${MANDIR}/man1 ] || mkdir -m 0755 -p ${MANDIR}/man1 |
63 [ -d ${MANDIR}/man1 ] || mkdir -m 0755 -p ${MANDIR}/man1 |
72 install -m 0644 ${INSTALL_OPTS} man1/vmm.1 ${MANDIR}/man1 |
64 install -m 0644 ${INSTALL_OPTS} man1/vmm.1 ${MANDIR}/man1 |