Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37514949
en ru br
Репозитории ALT
S:5.03-alt1
5.1: 0.98-alt19.M50P.1
4.1: 0.98-alt13.M41.1
4.0: 0.98-alt13.M40.1
3.0: 0.98-alt3
www.altlinux.org/Changes

Группа :: Система/Интернационализация
Пакет: man-pages-ru

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#
# This is package version
#
VERSION = 0.94

#
# This is where to install manpages
#
INSTALLPATH = /usr/share/man

#
# This is language subdirectory in $INSTALLPATH
# See $LANG description in man(1)
#
LANG_SUBDIR = ${LANG}

#
# How to compress manpages.
# Known compressors are `none', `gzip', `compress', `bzip2'
#
COMPRESS = gzip

#
# Compressor options
#
COMPRESS_OPTIONS =

#
# Compress manpage only if its size is greater than $COMPRESS_SIZE
#
COMPRESS_SIZE = 4096

#
# `install' command
#
INSTALL = install -m 644


all:
for d in 1 2 3 4 5 6 7 8; do \
make -C man$$d all; \
done

clean:
for d in 1 2 3 4 5 6 7 8; do \
make -C man$$d clean; \
done

install: install-pages install-aliases

install-pages:
[ -d $(INSTALLPATH) ] || mkdir $(INSTALLPATH)
[ -d $(INSTALLPATH)/$(LANG_SUBDIR) ] || mkdir $(INSTALLPATH)/$(LANG_SUBDIR)
if [ x$(COMPRESS) != xgzip -a \
x$(COMPRESS) != xbzip2 -a \
x$(COMPRESS) != xnone -a \
x$(COMPRESS) != xcompress ]; then \
echo Error: Invalid compressor $(COMPRESS) ; \
exit 1; \
fi
for section in 1 2 3 4 5 6 7 8; do \
[ -d man$$section ] || continue; \
[ -d $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section ] || \
mkdir $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section; \
cd man$$section; \
if [ x"`echo *.$$section`" != x\*.$$section ]; then \
for manpage in *.$$section; do \
rm -f $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section/$$manpage; \
for ext in gz Z bz2; do \
rm -f $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section/$$manpage.$$ext; \
done; \
$(INSTALL) $$manpage $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section; \
FILESIZE=`ls -l $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section/$$manpage | \
tr -s ' ' | cut -d ' ' -f 5`; \
if [ $$FILESIZE -gt $(COMPRESS_SIZE) ]; then \
if [ x$(COMPRESS) != xnone ]; then \
$(COMPRESS) $(COMPRESS_OPTIONS) $(INSTALLPATH)/$(LANG_SUBDIR)/man$$section/$$manpage; \
fi; \
fi; \
done; \
fi; \
cd ..; \
done

install-aliases:
for section in 1 2 3 4 5 6 7 8; do \
[ -d man$$section ] || continue; \
[ -f man$$section/ALIASES ] || continue; \
cd man$$section; \
dest_dir=$(INSTALLPATH)/$(LANG_SUBDIR)/man$$section; \
sed -e "/^#/d" -e "s,^\(.\+\) \(.\+\)$$,\
rm -f $$dest_dir/\2.$$section $$dest_dir/\2.$$section.gz \
$$dest_dir/\2.$$section.Z $$dest_dir/\2.$$section.bz2; \
echo .so man$$section/\1.$$section \> $$dest_dir/\2.$$section," \
< ALIASES > tmp-run; \
. tmp-run; \
rm -f tmp-run; \
cd ..; \
done
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin