summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--man/Makefile13
-rw-r--r--man/cs/run-parts.878
-rw-r--r--man/et/run-parts.882
-rw-r--r--man/eu/run-parts.882
-rw-r--r--man/fr/run-parts.878
-rw-r--r--man/it/run-parts.882
-rw-r--r--man/nl/run-parts.883
-rw-r--r--man/uk/run-parts.887
-rw-r--r--utils/Makefile13
-rw-r--r--utils/run-parts.881
-rw-r--r--utils/run-parts.c425
12 files changed, 1 insertions, 1105 deletions
diff --git a/Makefile b/Makefile
index 42f11d1..bdd61ae 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ LIST = csh.cshrc csh.login host.conf hosts.allow hosts.deny inputrc \
motd printcap protocols securetty services shells profile \
filesystems fstab resolv.conf hosts
-subdir = passgrp utils man
+subdir = passgrp
FILES = $(subdir) $(LIST) Makefile NEWS
diff --git a/man/Makefile b/man/Makefile
deleted file mode 100644
index 47c356f..0000000
--- a/man/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-subdir = cs et eu fr it nl uk
-mandir = /usr/share/man
-
-all:
-
-clean:
-
-install:
- @for dir in $(subdir); do \
- install -d $(DESTDIR)$(mandir)/$$dir/man8; \
- install -m 644 $$dir/*.8 $(DESTDIR)$(mandir)/$$dir/man8; \
- done
-
diff --git a/man/cs/run-parts.8 b/man/cs/run-parts.8
deleted file mode 100644
index a6cba7a..0000000
--- a/man/cs/run-parts.8
+++ /dev/null
@@ -1,78 +0,0 @@
-.\" Hey, Emacs! This is an -*- nroff -*- source file.
-.\" Build-from-directory and this manpage are Copyright 1994 by Ian Jackson.
-.\" Changes to this manpage are Copyright 1996 by Jeff Noxon.
-.\" More
-.\"
-.\" This is free software; see the GNU General Public Licence version 2
-.\" or later for copying conditions. There is NO warranty.
-.TH RUN\-PARTS 8 "5. Červen 1996" "Debian Linux"
-.SH NÁZEV
-run\-parts \- spustí skripty nebo programy z adresáře
-.SH SYNAPSE
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] adresář
-.SH POPIS
-.PP
-.B run\-parts
-spustí několik skriptů nebo programů, které se nacházejí v jednom adresáři
-.IR adresář .
-Názvy souborů by se měly skládat pouze z velkých a malých písmen, číslic, podtržítka
-a pomlček. Podadresáře
-.I adresáře
-a soubory s jinými názvy budou tiše ignorovány.
-
-Skripty musí dodržovat konvenci
-.B #!/bin/interpretername ,
-jinak nebudou spuštěny. Skripty nebudou automaticky spuštěny příkazem
-.B /bin/sh.
-
-Nalezené soubory budou spuštěny v lexikálním pořadí svých názvů.
-.SS VOLBY
-.TP
-.B \-\-test
-vypíše názvy skriptů, které by byly spuštěny, ale tyto skripty nespustí
-.TP
-.B \-\-verbose
-vypíše před jejich spuštěním název každého skriptu na standardní chybový výstup.
-.TP
-.B \-\-report
-podobná volbě
-.BR \-\-verbose ,
-pouze s tím rozdílem, že vypíše pouze názvy skriptů, které vyprodukovaly nějaký výstup. Název skriptu je vypsán na standardní výstup nebo na standardní chybový výstup, záleží na skriptu, na který výstup vyprodukuje výstup první.
-.B
-.TP
-.BI \-\-umask= umask
-Nastaví masku umask na
-.I umask
-před spuštěním skriptu. Maska
-.I umask
-by měla být zadána v osmičkovém tvaru. Výchozí hodnota masky umask je nastavena na 022.
-.TP
-.BI \-\-arg= argument
-Předá skriptům
-.I argument .
-Použijte
-.B --arg
-pro každý parametr, který chcete předat.
-.TP
-.B "\-\-"
-Znamená ukončení voleb. Každý název souboru uvedený po znacích
-.B "\-\-"
-nebude pokládán za volbu, i pokud by začínal pomlčkami.
-.TP
-.B \-\-help
-Zobrazí informace nápovědy a ukončí se.
-.TP
-.B \-\-version
-Zobrazí verzi a informace o autorských právech a ukončí se.
-
-.SH COPYRIGHT
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996, 1997, 1998 Guy Maor
-
-.B run\-parts
-je volně šiřitelný software; viz licence GNU General Public Licence verze 2 nebo
-pozdější s podmínkami pro kopírování. Je dodáván bez
-.I jakýchkoli
-záruk.
diff --git a/man/et/run-parts.8 b/man/et/run-parts.8
deleted file mode 100644
index 91bb8ea..0000000
--- a/man/et/run-parts.8
+++ /dev/null
@@ -1,82 +0,0 @@
-.\" Hei, Emacs! See on -*- nroff -*- lähtetekstifail.
-.\" Build-from-directory ja selle manuaalilehekülje autoriõigus: 1994, Ian Jackson.
-.\" Manuaalilehekülgede muudatuste autoriõigus: 1996, Jeff Noxon.
-.\" Rohkem
-.\"
-.\" See on vaba tarkvara, kopeerimistingimuste kohta vaadake GNU Üldist Avalikku Litsentsi, versioon 2 või hilisem. Sellega ei kaasne MINGIT garantiid.
-.TH "RUN\-PARTS" "8" "5. juuni 1996" "Debian Linux" ""
-.SH "NIMI"
-run\-parts \- käivitab skripte või rakendusi kataloogis
-.SH "KOKKUVÕTE"
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] kataloog
-.SH "KIRJELDUS"
-.PP
-.B run\-parts
-käivitab rea skripte või rakendusi, mis leiduvad konkreetses kataloogis
-.I R kataloog .
-Failinimed peavad koosnema täielikult suur\- ja väiketähtedest, numbritest, alakriipsudest ja poolituskriipsudest.
-.I Kataloogi alamkatalooge ja muude märkidega faile vaikimisi eiratakse.
-
-Skriptid peavad käivitamiseks järgima
-.B #!/bin/interpretername
-reegleid. Neid ei käivitata automaatselt
-.B /bin/sh
-abil.
-
-Leitud failid käivitatakse failinimede tähestikulises järjekorras.
-.SS VÕTMED
-.TP
-.B \-\-test
-näitab skriptide nimesid, mida käivitatakse, kuid ei käivita neid.
-.TP
-.B \-\-verbose
-näitab enne käivitamist iga skripti nime ja edasi selgitusi.
-.TP
-.B \-\-report
-üsna samasugune, nagu
-.BR \-\-verbose ,
-kuid näitab ainult skriptide nime, mis tekitavad väljundi. Script's name is printed to whichever of stdout or stderr the script first produces output on.
-.B
-.TP
-.BI \-\-umask= umask
-Määrab umaski väärtuseks
-.I umask
-enne skriptide käivitamist.
-.I umask
-peab olema määratud kaheksandikarvuna. Vaike\-umask on 022.
-.TP
-.BI \-\-arg= argument
-Läkitab
-.I argumendi
-skriptidele. Kasuta võtit
-.B \-\-arg
-kord iga argumendi kohta, mida soovid läkitada.
-.TP
-.B "\-\-"
-Määrab, et sellega lõpevad võtmed. Ühtegi failinime pärast võtit
-.B "\-\-"
-ei tõlgendata võtmena isegi siis, kui see algab võtmekriipsuga.
-.TP
-.B \-\-help
-Näitab infot kasutamise kohta ja väljub.
-.TP
-.B \-\-version
-Näitab versiooni ja autoriõigust ning väljub.
-
-.SH "AUTORIÕIGUS"
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-on vaba tarkvara; kopeerimistingimusi vaadake GNU Üldisest Avalikust Litsentsist, versioon 2 või hilisem. Sellega ei kaasne
-.I mingit
-garantiid.
-.br
-
-
-.br
-Tõlge eesti keelde 2002: Marek Laane
-.br
-bald@online.ee
diff --git a/man/eu/run-parts.8 b/man/eu/run-parts.8
deleted file mode 100644
index 79b6334..0000000
--- a/man/eu/run-parts.8
+++ /dev/null
@@ -1,82 +0,0 @@
-.\" Kaixo Emacs! Honako hau -*- nroff -*- iturburu-fitxategia da.
-.\" Sorrera-direktorioak eta eskuliburuko orri honek Ian Jackson-en 1994 Copyright-a dute.
-.\" Eskuliburuko orri honetako aldaketek Jeff Noxon-en 1996 Copyright-a dute.
-.\" Besterik
-.\"
-.\" Software librea da; kopiatzeko baldintzak GNU Lizentzia Publiko Orokorraren
-.\" 2. bertsioan edo berriago batean ikusi. Ez du INOLAKO bermerik.
-.TH RUN\-PARTS 8 "1996ko ekainak 5" "Debian Linux"
-.SH IZENA
-run\-parts \- direktorio bateko programak eta script-ak exekutatzen ditu
-.SH LABURPENA
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] direktorioa
-.SH AZALPENA
-.PP
-.B run\-parts-ek
-.IR direktorio
-bakun batean aurkitutako programa edo script batzuk exekutatzen ditu.
-Fitxategi-izenek letra maiuskulak eta minuskulak,
-digituak, azpimarrak eta marratxoak baino ezin dituzte izan. Bestelako izenak
-dituzten .I direktorioko
-azpidirektorioei eta fitxategiei ezikusi egingo zaie isilpean.
-
-Script-ek
-.B #!/bin/interpretername
-hitzarmena bete behar dute exekutatuak izango badira. .B /bin/sh-ek
-ez ditu automatikoki
-exekutatuko.
-
-Aurkitutako fitxategiak fitxategi-izenen hurrenkera lexikalean exekutatuko dira.
-.SS AUKERAK
-.TP
-.B \-\-test
-exekutatuko diren script-en izenak inprimatzen ditu, baina ez ditu
-exekutatuko.
-.TP
-.B \-\-verbose
-script bakoitzaren izena errore estandarrean inprimatzen du exekutatu aurretik.
-.TP
-.B \-\-report
-.BR \-\-verbose-ren
-antzekoa da,
-baina irteera sortzen duten script-en izenak bakarrik inprimatzen ditu. Script-a non agertzen den lehenago, irteera estandarrean edo errore estandarrean, hortxe inprimatuko da script-aren izen hori.
-.B
-.TP
-.BI \-\-umask= umask
-umask
-.I umask-en
-ezartzen du script-ak exekutatu aurretik.
-.I umask
-zortzitarretan zehaztu behar da. Lehenespen gisa, umask 022 izaten da.
-.TP
-.BI \-\-arg= argument
-.I argumentua
-script-etara
-pasatzen du. .B --arg
-behin erabili
-pasatu nahi duzun argumentu bakoitzeko.
-.TP
-.B "\-\-"
-Aukeren amaiera dela zehazten du. .B "\-\-"ren
-ondoko edozein fitxategi-izen
-ez da aukera moduan interpretatua izango, nahiz eta marratxo batez
-hasi.
-.TP
-.B \-\-help
-Erabiltzeko informazioa bistaratu eta irten egingo da.
-.TP
-.B \-\-version
-Bertsioa eta copyright-a bistaratu eta irten egingo da.
-
-.SH COPYRIGHTa
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-software librea da; kopiatzeko baldintzak GNU Lizentzia Publiko Orokorraren
-2. bertsioan edo berriago batean ikusi. Ez du
-.I inolako
-bermerik.
-
diff --git a/man/fr/run-parts.8 b/man/fr/run-parts.8
deleted file mode 100644
index 23f63bf..0000000
--- a/man/fr/run-parts.8
+++ /dev/null
@@ -1,78 +0,0 @@
-.\" Hey, Emacs! This is an -*- nroff -*- source file.
-.\" Build-from-directory and this manpage are Copyright 1994 by Ian Jackson.
-.\" Changes to this manpage are Copyright 1996 by Jeff Noxon.
-.\" More
-.\"
-.\" This is free software; see the GNU General Public Licence version 2
-.\" or later for copying conditions. There is NO warranty.
-.TH RUN\-PARTS 8 "5 June 1996" "Debian Linux"
-.SH NAME
-run\-parts \- lance des scripts ou programmes dans un répertoire
-.SH SYNOPSIS
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] directory
-.SH DESCRIPTION
-.PP
-.B run\-parts
-lance un nombre de scripts ou programmes trouvés dans un seul répertoire
-.IR directory .
-Les noms de fichier doivent être constitués uniquement de caractères majuscules
-et minuscules, chiffres, soulignés, et tirets. Les sous-répertoires de
-.I directory
-et les fichiers avec d'autres noms seront ignorés silencieusement.
-
-Les scripts doivent suivre la convention
-.B #!/bin/interpretername
-afin d'être exécutés. Ils ne seront pas automatiquement lancés par
-.B /bin/sh.
-
-Les fichiers trouvés seront lancés dans l'ordre alphabétique des noms de fichiers.
-.SS OPTIONS
-.TP
-.B \-\-test
-affiche les noms des scripts à lancer, mais ne les lance pas.
-.TP
-.B \-\-verbose
-affiche le nom de chaque script vers la sortie d'erreur avant son lancement.
-.TP
-.B \-\-report
-similaire à
-.BR \-\-verbose ,
-mais n'affiche que le nom des scripts qui produisent une sortie. Le nom du script est affiché sur la sortie stdout ou stderr, selon la destination de la première écriture du script.
-.B
-.TP
-.BI \-\-umask= umask
-Donne à umask la valeur
-.I umask
-avant de lancer les scripts.
-.I umask
-doit être spécifié en octal. Par défaut, umask prend la valeur 022.
-.TP
-.BI \-\-arg= argument
-Passe
-.I argument
-aux scripts. Utilisez
-.B --arg
-pour chaque argument que vous voulez passer.
-.TP
-.B "\-\-"
-Spécifie que c'est la fin des options. Tout fichier après
-.B "\-\-"
-ne sera pas interprété comme une option même s'il commence par un tiret.
-.TP
-.B \-\-help
-Affiche la syntaxe et quitte.
-.TP
-.B \-\-version
-Affiche la version, le copyright, et quitte.
-
-.SH COPYRIGHT
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-is free software; see the GNU General Public Licence version 2 or
-later for copying conditions. There is
-.I no
-warranty.
diff --git a/man/it/run-parts.8 b/man/it/run-parts.8
deleted file mode 100644
index 79ccf7f..0000000
--- a/man/it/run-parts.8
+++ /dev/null
@@ -1,82 +0,0 @@
-.\" Hey, Emacs! This is an -*- nroff -*- source file.
-.\" Build-from-directory and this manpage are Copyright 1994 by Ian Jackson.
-.\" Changes to this manpage are Copyright 1996 by Jeff Noxon.
-.\" More
-.\"
-.\" This is free software; see the GNU General Public Licence version 2
-.\" or later for copying conditions. There is NO warranty.
-.TH RUN\-PARTS 8 "5 giugno 1996" "Debian Linux"
-.SH NOME
-run\-parts \- esegue script o programmi in una directory
-.SH SINTASSI
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] directory
-.SH DESCRIZIONE
-.PP
-.B run\-parts
-esegue un gruppo di script o programmi che si trova in una singola directory
-.IR directory .
-I nomi dei file devono contenere solo lettere maiuscole e minuscole,
-numeri, sottolineature e trattini. Sottodirectory di
-.I directory
-e file con altri nomi saranno ignorati senza avvisare.
-
-Gli script devono seguire la convenzione
-.B #!/bin/nomeinterprete
-per essere eseguiti. Non saranno eseguiti automaticamente da
-.B /bin/sh.
-
-I file trovati saranno eseguiti nell'ordine lessicale dei nomi dei file.
-.SS OPZIONI
-.TP
-.B \-\-test
-stampa i nomi degli script che andrebbero in esecuzione, ma senza mandarli in esecuzione realmente.
-.TP
-.B \-\-verbose
-stampa il nome di ciascuno script sullo stderr prima di eseguirlo.
-.TP
-.B \-\-report
-simile a
-.BR \-\-verbose ,
-ma stampa solo il nome dello script che produce output. Il nome dello script viene stampato su stdout o stderr a seconda su quale dei due per primo lo script produce output.
-.B
-.TP
-.BI \-\-umask= umask
-Imposta l'umask a
-.I umask
-prima di mandare in esecuzione gli script.
-.I umask
-dovrebbe essere specificata in ottale. L'umask è pre-impostata a 022.
-.TP
-.BI \-\-arg= argomento
-Passa
-.I argomento
-agli script. Usa
-.B --arg
-una volta per ciascun argomento che vuoi passare.
-.TP
-.B "\-\-"
-Specifica che questa è la fine delle opzioni. Qualsiasi nome di file dopo
-.B "\-\-"
-non sarà interpretato come opzione anche se comincia con un trattino.
-.TP
-.B \-\-help
-Visualizza informazioni sull'uso ed esce.
-.TP
-.B \-\-version
-Visualizza la versione e il copyright ed esce.
-
-.SH COPYRIGHT
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-è un software libero; vedi la versione 2 della GNU General Public Licence
-(o una successiva) per le condizioni di redistribuzione.
-.I Non
-ci sono garanzie.
-
-.SH TRADUTTORE
-Salvatore Di Petro
-salvuz@despammed.com
diff --git a/man/nl/run-parts.8 b/man/nl/run-parts.8
deleted file mode 100644
index 26ba4fe..0000000
--- a/man/nl/run-parts.8
+++ /dev/null
@@ -1,83 +0,0 @@
-.\" Hey, Emacs! This is an -*- nroff -*- source file.
-.\" Build-from-directory and this manpage are Copyright 1994 by Ian Jackson.
-.\" Changes to this manpage are Copyright 1996 by Jeff Noxon.
-.\" More
-.\"
-.\" This is free software; see the GNU General Public Licence version 2
-.\" or later for copying conditions. There is NO warranty.
-.TH RUN\-PARTS 8 "5 June 1996" "Debian Linux"
-.SH NAAM
-run\-parts \- voert scripts of programma's uit in een directory
-.SH SYNOPSIS
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=parameter] [\-\-help] [\-\-version] directory
-.SH BESCHRIJVING
-.PP
-.B run\-parts
-voert een aantal scripts of programma's uit die zich in één directory
-.IR directory
-bevinden.
-Bestandsnamen mogen uitsluitend bestaan uit hoofdletters, kleine letters, cijfers,
-onderstrepingstekens (_) en liggende streepjes (-). Subdirectory's van
-.I directory
-en bestanden met andere namen worden stilzwijgend genegeerd.
-
-Scripts moeten zich houden aan de conventie
-.B #!/bin/interpretername
-om uitgevoerd te kunnen worden. Ze worden niet automatisch uitgevoerd door
-.B /bin/sh.
-
-De aangetroffen bestanden worden uitgevoerd in alfabetische volgorde van de bestandsnamen.
-.SS OPTIES
-.TP
-.B \-\-test
-Toont de namen van de scripts die uitgevoerd zouden worden, echter zonder ze daadwerkelijk
-uit te voeren.
-.TP
-.B \-\-verbose
-Stuurt de naam van ieder script naar stderr alvorens het uit te voeren.
-.TP
-.B \-\-report
-Vergelijkbaar met
-.BR \-\-verbose ,
-Toont echter alleen de namen van scripts die uitvoer produceren. De naam van het script
-wordt weergegeven via stdout of stderr, afhankelijk van waar de eerste uitvoer van het
-script naartoe wordt gestuurd.
-.B
-.TP
-.BI \-\-umask= umask
-Stelt de umask in op
-.I umask
-alvorens de scripts uit te voeren.
-.I umask
-moet hierbij in octale notatie worden opgegeven. Het umask is standaard ingesteld op 022.
-.TP
-.BI \-\-arg= parameter
-Geef
-.I parameter
-door aan de scripts. Gebruik telkens één optie
-.B --arg
-per parameter die u wilt doorgeven.
-.TP
-.B "\-\-"
-Geeft het einde van de serie opties aan. Tekst na
-.B "\-\-"
-zal niet als optie worden geïnterpreteerd, ook niet wanneer deze begint met een
-liggend streepje (-).
-.TP
-.B \-\-help
-Toont beknopte gebruiksinformatie.
-.TP
-.B \-\-version
-Toont versie- en copyright-informatie.
-
-.SH COPYRIGHT
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-is vrije software; zie de GNU General Public Licence versie 2 of
-later voor de kopieervoorwaarden. Er worden
-.I geen
-garanties gegeven.
diff --git a/man/uk/run-parts.8 b/man/uk/run-parts.8
deleted file mode 100644
index da30998..0000000
--- a/man/uk/run-parts.8
+++ /dev/null
@@ -1,87 +0,0 @@
-.\" Hey, Emacs! This is an -*- nroff -*- source file.
-.\" Build-from-directory and this manpage are Copyright 1994 by Ian Jackson.
-.\" Changes to this manpage are Copyright 1996 by Jeff Noxon.
-.\" More
-.\"
-.\" This is free software; see the GNU General Public Licence version 2
-.\" or later for copying conditions. There is NO warranty.
-.TH RUN\-PARTS 8 "5 June 1996" "Debian Linux"
-.SH НАЗВА
-run\-parts \- виконати скрипти чи програми в заданому каталозі
-.SH ВИКОРИСТАННЯ
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] directory
-.SH ОПИС
-.PP
-.B run\-parts
-виконує скрипти чи програми знайдені в певному каталозі
-.IR directory .
-Назви файлів повинні складатись з великих чи малих літер, цифр
-підкреслень чи дефісів. Підкаталоги каталога
-.I directory
-і файли з назвами, які не відповідають цьому правилу мовчки ігноруються.
-
-Скрипти повинні відповідати угоді на формат першого рядка
-.B #!/bin/interpretername
-для того, щоб вони виконувались. Скрипти не будуть автоматично
-виконуватись в
-.B /bin/sh.
-
-Знайдені файли виконуються в порядку алфавітного сортування назв файлів.
-.SS OPTIONS
-.TP
-.B \-\-test
-друкує назви скриптів, які б мали виконуватись, але не виконує їх.
-.TP
-.B \-\-verbose
-друкує назву кожного скрипту на stderr перш, ніж виконувати.
-.TP
-.B \-\-report
-подібно
-.BR \-\-verbose ,
-але тільки друкує назви скриптів, які щось друкують на екран. Назва
-скрипту друкується, якщо скрипт друкує що-небудь або на stdout, або на
-stderr.
-.B
-.TP
-.BI \-\-umask= шаблон
-Встановлює umask рівну
-.I шаблон
-перш, ніж виконувати скрипти.
-.I шаблон
-повинен задаватись у вісімковому форматі. Маска встановлюється в 022,
-якщо не вказано інакше.
-.TP
-.BI \-\-arg= аргумент
-Передає
-.I аргумент
-скриптам. Для кожного окремого аргументу, які Вам потрібно передати
-скриптам, вживайте окремий параметр
-.B --arg
-.TP
-.B "\-\-"
-Вказує на те, що це кінець всіх параметрів. Будь яка назва файла, що
-йде після
-.B "\-\-"
-не буде вважатись параметром, навіть якщо назва починається з дефіса.
-.TP
-.B \-\-help
-Друкує на екран підказку про використання і закінчує роботу.
-.TP
-.B \-\-version
-Друкує на екран інформацію про версію і авторські права і закінчує роботу.
-
-.SH АВТОРСЬКІ ПРАВА
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-це вільне програмне забезпечення; див. Загальну Публічну Ліцензію GNU
-(GPL) версії 2 чи пізнішою щодо умов розповсюдження. Гарантія
-.I не
-надається.
-.SH
-ПЕРЕКЛАД
-.br
-Дмитро Ковальов, <kov@tokyo.emai.ne.jp>
diff --git a/utils/Makefile b/utils/Makefile
deleted file mode 100644
index f8ee2c3..0000000
--- a/utils/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-mandir = /usr/share/man
-
-all: run-parts
-
-run-parts: run-parts.c
- $(CC) $(CFLAGS) -o $@ $<
-
-clean:
- rm -f run-parts *.o *~
-
-install: all
- install -D -m 644 run-parts.8 $(DESTDIR)/$(mandir)/man8/run-parts.8
- install -D -m 755 run-parts $(DESTDIR)/usr/bin/run-parts
diff --git a/utils/run-parts.8 b/utils/run-parts.8
deleted file mode 100644
index f10be22..0000000
--- a/utils/run-parts.8
+++ /dev/null
@@ -1,81 +0,0 @@
-.\" Hey, Emacs! This is an -*- nroff -*- source file.
-.\" Build-from-directory and this manpage are Copyright 1994 by Ian Jackson.
-.\" Changes to this manpage are Copyright 1996 by Jeff Noxon.
-.\" More
-.\"
-.\" This is free software; see the GNU General Public Licence version 2
-.\" or later for copying conditions. There is NO warranty.
-.TH RUN\-PARTS 8 "5 June 1996" "Debian Linux"
-.SH NAME
-run\-parts \- run scripts or programs in a directory
-.SH SYNOPSIS
-.B run\-parts
-[\-\-test] [\-\-verbose] [\-\-report] [\-\-umask=umask] [\-\-arg=argument] [\-\-help] [\-\-version] directory
-.SH DESCRIPTION
-.PP
-.B run\-parts
-runs a number of scripts or programs found in a single directory
-.IR directory .
-Filenames should consist entirely of upper and
-lower case letters, digits, underscores, and hyphens. Subdirectories of
-.I directory
-and files with other names will be silently ignored.
-
-Scripts must follow the
-.B #!/bin/interpretername
-convention in order to be executed. They will not automatically be
-executed by
-.B /bin/sh.
-
-The files found will be run in the lexical sort order of the filenames.
-.SS OPTIONS
-.TP
-.B \-\-test
-print the names of the scripts which would be run, but don't actually run
-them.
-.TP
-.B \-\-verbose
-print the name of each script to stderr before running.
-.TP
-.B \-\-report
-similiar to
-.BR \-\-verbose ,
-but only prints the name of scripts which produce output. The script's name is printed to whichever of stdout or stderr the script first produces output on.
-.B
-.TP
-.BI \-\-umask= umask
-Sets the umask to
-.I umask
-before running the scripts.
-.I umask
-should be specified in octal. By default the umask is set to 022.
-.TP
-.BI \-\-arg= argument
-Pass
-.I argument
-to the scripts. Use
-.B --arg
-once for each argument you want passed.
-.TP
-.B "\-\-"
-Specifies that this is the end of the options. Any filename after
-.B "\-\-"
-will be not be interpreted as an option even if it starts with a
-hyphen.
-.TP
-.B \-\-help
-Display usage information and exit.
-.TP
-.B \-\-version
-Display version and copyright and exit.
-
-.SH COPYRIGHT
-Copyright (C) 1994 Ian Jackson.
-Copyright (C) 1996 Jeff Noxon.
-Copyright (C) 1996,1997,1998 Guy Maor
-
-.B run\-parts
-is free software; see the GNU General Public Licence version 2 or
-later for copying conditions. There is
-.I no
-warranty.
diff --git a/utils/run-parts.c b/utils/run-parts.c
deleted file mode 100644
index db6193e..0000000
--- a/utils/run-parts.c
+++ /dev/null
@@ -1,425 +0,0 @@
-/* run-parts: run a bunch of scripts in a directory
- *
- * Debian run-parts program
- * Copyright (C) 1996 Jeff Noxon <jeff@router.patch.net>,
- * Copyright (C) 1996-1999 Guy Maor <maor@debian.org>
- *
- * This is free software; see the GNU General Public License version 2
- * or later for copying conditions. There is NO warranty.
- *
- * Based on run-parts.pl version 0.2, Copyright (C) 1994 Ian Jackson.
- *
- */
-
-#include <stdio.h>
-#include <stdarg.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <dirent.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <getopt.h>
-#include <string.h>
-#include <errno.h>
-#include <ctype.h>
-#include <signal.h>
-#include <sys/time.h>
-
-#define VERSION "1.15"
-
-int test_mode = 0;
-int verbose_mode = 0;
-int report_mode = 0;
-int exitstatus = 0;
-
-int argcount = 0, argsize = 0;
-char **args = 0;
-
-void error (char *format,...)
-{
- va_list ap;
-
- fprintf (stderr, "run-parts: ");
-
- va_start (ap, format);
- vfprintf (stderr, format, ap);
- va_end (ap);
-
- fprintf (stderr, "\n");
-}
-
-
-static void version (void)
-{
- fprintf (stderr, "Mageia run-parts program, version " VERSION "\n"
- "Copyright (C) 1994 Ian Jackson, Copyright (C) 1996 Jeff Noxon.\n"
- "Copyright (C) 1996,1997,1998,1999 Guy Maor\n"
- "This is free software; see the GNU General Public License version 2\n"
- "or later for copying conditions. There is NO warranty.\n"
- );
- exit (0);
-}
-
-
-static void usage (void)
-{
- fprintf (stderr, "Usage: run-parts [OPTION]... DIRECTORY\n"
- " --test print script names which would run, but don't run them.\n"
- " --verbose print script names before running them.\n"
- " --report print script names if they produce output.\n"
- " --umask=UMASK sets umask to UMASK (octal), default is 022.\n"
- " --arg=ARGUMENT pass ARGUMENT to scripts, use once for each argument.\n"
- " --version output version information and exit.\n"
- " --help display this help and exit.\n"
- );
- exit(0);
-}
-
-
-/* The octal conversion in libc is not foolproof; it will take the 8 and 9
- * digits under some circumstances. We'll just have to live with it.
- */
-static void set_umask (void)
-{
- int mask, result;
-
- result = sscanf (optarg, "%o", &mask);
- if ((result != 1) || (mask > 07777) || (mask < 0)) {
- error ("bad umask value");
- exit (1);
- }
-
- umask (mask);
-}
-
-/* Add an argument to the commands that we will call. Called once for
- every argument. */
-void add_argument (char *newarg)
-{
- if (argcount+1 >= argsize) {
- argsize = argsize ? argsize*2 : 4;
- args = realloc(args, argsize * (sizeof(char*)));
- if (!args) {
- error("failed to reallocate memory for arguments: %s", strerror(errno));
- exit(1);
- }
- }
- args[argcount++] = newarg;
- args[argcount] = 0;
-}
-
-/* True or false? Is this a valid filename (upper/lower alpha, digits,
- * underscores, and hyphens only?)
- */
-int valid_name (const struct dirent *d)
-{
- const char *c = d->d_name;
- int filenamelen;
-
- filenamelen=strlen(c);
- if( (strncmp(".rpmsave",&(c[filenamelen-8]),9)==0)
- || (strncmp(".rpmorig",&(c[filenamelen-8]),9)==0)
- || (strncmp(".rpmnew",&(c[filenamelen-7]),8)==0) )
- return 0;
-
- while (*c) {
- if (!isalnum(*c) && *c!='_' && *c!='-' && *c!='.')
- return 0;
- ++c;
- }
- return 1;
-}
-
-
-void set_fl (int fd, int flags)
-{
- int val;
- if ((val = fcntl(fd, F_GETFL, 0)) < 0) {
- error("fcntl F_GETFL: %s", strerror(errno));
- exit(1);
- }
- val |= flags;
- if (fcntl(fd, F_SETFL, val) < 0) {
- error("fcntl F_SETFL: %s", strerror(errno));
- exit(1);
- }
-}
-
-
-/* We have to abort the select() call in run_part when we receive a
- * SIGCHLD signal. We can't simply ignore it, so we do nothing.
- */
-void catch_sigchld(int sig) {
-}
-
-
-/* Execute a file */
-void run_part (char *progname)
-{
- int result;
- int pid;
- int pout[2], perr[2];
-
- if (report_mode && (pipe(pout) || pipe(perr))) {
- error("pipe: %s", strerror(errno));
- exit(1);
- }
- if ((pid=fork()) < 0) {
- error("failed to fork: %s", strerror(errno));
- exit(1);
- }
- else if (!pid) {
- if (report_mode) {
- if (dup2(pout[1], STDOUT_FILENO) == -1 ||
- dup2(perr[1], STDERR_FILENO) == -1) {
- error("dup2: %s", strerror(errno));
- exit(1);
- }
- close(pout[0]);
- close(perr[0]);
- close(pout[1]);
- close(perr[1]);
- }
- args[0] = progname;
- execv (progname, args);
- /* Try with sh */
- if (verbose_mode) fprintf(stderr, "run-parts: executing %s with /bin/sh\n", progname);
- execl("/bin/sh", "/bin/sh", "-c", progname, args, (char *)0);
- error ("failed to exec %s: %s", progname, strerror (errno));
- exit (1);
- }
-
- if (report_mode) {
- fd_set set;
- int max, r, w, printflag, errno_select;
- ssize_t c;
- char buf[4096];
- struct timeval zerotime, *timeout;
- struct sigaction sa, sold;
-
- close(pout[1]);
- close(perr[1]);
- set_fl(pout[0], O_NONBLOCK);
- set_fl(perr[0], O_NONBLOCK);
- max = pout[0] > perr[0] ? pout[0]+1 : perr[0]+1;
- printflag = 0;
- zerotime.tv_usec = 0;
- zerotime.tv_sec = 0;
- timeout = NULL;
- sigaction(SIGCHLD, NULL, &sa);
- sa.sa_handler = catch_sigchld;
-
- for (;;) {
- FD_ZERO(&set);
- if (pout[0] >= 0) FD_SET(pout[0], &set);
- if (perr[0] >= 0) FD_SET(perr[0], &set);
-
- /* select() call may be interrupted by SIGCHLD */
- sigaction(SIGCHLD, &sa, &sold);
- r = select(max, &set, 0, 0, timeout);
- errno_select = errno;
- sigaction(SIGCHLD, &sold, NULL);
-
- if (r > 0) {
- if (pout[0] >= 0 && FD_ISSET(pout[0], &set)) {
- c = read(pout[0], buf, sizeof(buf));
- if (c > 0) {
- if (!printflag) {
- printf("%s:\n", progname);
- fflush(stdout);
- printflag = 1;
- }
- write(STDOUT_FILENO, buf, c);
- }
- else if (c == 0) {
- close(pout[0]);
- pout[0] = -1;
- }
- }
- if (perr[0] >= 0 && FD_ISSET(perr[0], &set)) {
- c = read(perr[0], buf, sizeof(buf));
- if (c > 0) {
- if (!printflag) {
- fprintf(stderr, "%s:\n", progname);
- fflush(stderr);
- printflag = 1;
- }
- write(STDERR_FILENO, buf, c);
- }
- else if (c == 0) {
- close(perr[0]);
- perr[0] = -1;
- }
- }
- }
- else if (r < 0) {
- /* select() was interrupted so check if we got a SIGCHLD
- * probably from our child (check this later).
- */
- if (errno_select != EINTR) {
- error("select: %s", strerror(errno_select));
- exit(1);
- }
- }
- else if (timeout == NULL) { /* should never happen */
- error("internal error: select() returned 0 !");
- exit(1);
- }
- if (timeout == NULL) {
- w = waitpid(pid, &result, WNOHANG);
- if (w > 0) {
- /* Our child has died so prepare to flush the pipes */
- timeout = &zerotime;
- }
- }
- else {
- if (pout[0]) close(pout[0]);
- if (perr[0]) close(perr[0]);
- break;
- }
- }
- }
- else {
- waitpid(pid, &result, 0);
- }
-
- if (WIFEXITED (result) && WEXITSTATUS(result)) {
- error ("%s exited with return code %d", progname, WEXITSTATUS(result));
- exitstatus = 1;
- }
- else if (WIFSIGNALED (result)) {
- error ("%s exited because of uncaught signal %d", progname,
- WTERMSIG(result));
- exitstatus = 1;
- }
-}
-
-
-/* Find the parts to run & call run_part() */
-void run_parts (char *dirname)
-{
- struct dirent **namelist;
- char *filename;
- size_t filename_length, dirname_length;
- int entries, i, result;
- struct stat st;
-
- /* dirname + "/" */
- dirname_length = strlen(dirname) + 1;
- /* dirname + "/" + ".." + "\0" (This will save one realloc.) */
- filename_length = dirname_length + 2 + 1;
- if (! (filename = malloc(filename_length))) {
- error ("failed to allocate memory for path: %s", strerror(errno));
- exit (1);
- }
- strcpy (filename, dirname);
- strcat (filename, "/");
-
- /* scandir() isn't POSIX, but it makes things easy. */
- entries = scandir (dirname, &namelist, valid_name, alphasort);
- if (entries < 0) {
- error ("failed to open directory %s: %s", dirname, strerror (errno));
- exit (1);
- }
-
- for (i = 0; i < entries; i++) {
- if (filename_length < dirname_length + strlen(namelist[i]->d_name) + 1) {
- filename_length = dirname_length + strlen(namelist[i]->d_name) + 1;
- if (!(filename = realloc(filename, filename_length))) {
- error ("failed to reallocate memory for path: %s", strerror(errno));
- exit (1);
- }
- }
- strcpy (filename + dirname_length, namelist[i]->d_name);
-
- strcpy (filename, dirname);
- strcat (filename, "/");
- strcat (filename, namelist[i]->d_name);
-
- result = stat (filename, &st);
- if (result < 0) {
- error ("failed to stat component %s: %s", filename,
- strerror (errno));
- exit (1);
- }
- if (S_ISREG(st.st_mode) && !access (filename, X_OK)) {
- if (test_mode)
- printf ("run-parts would run %s\n", filename);
- else {
- if (verbose_mode)
- fprintf(stderr, "run-parts: executing %s\n", filename);
- run_part (filename);
- }
- }
- else if (!S_ISDIR(st.st_mode)) {
- printf ("run-parts: component %s is not an executable plain file\n",
- filename);
- exitstatus = 1;
- }
-
- free (namelist[i]);
- }
- free (namelist);
- free (filename);
-}
-
-/* Process options */
-int main (int argc, char *argv[])
-{
- umask (022);
- add_argument(0);
-
- for (;;) {
- int c;
- int option_index = 0;
-
- static struct option long_options[] = {
- {"test", 0, &test_mode, 1},
- {"verbose", 0, &verbose_mode, 1},
- {"report", 0, &report_mode, 1},
- {"umask", 1, 0, 'u'},
- {"arg", 1, 0, 'a'},
- {"help", 0, 0, 'h'},
- {"version", 0, 0, 'v'},
- {0, 0, 0, 0}
- };
-
- opterr = 0;
- c = getopt_long (argc, argv, "", long_options, &option_index);
- if (c == EOF)
- break;
- switch (c) {
- case 0:
- break;
- case 'u':
- set_umask ();
- break;
- case 'a':
- add_argument (optarg);
- break;
- case 'h':
- usage();
- break;
- case 'v':
- version ();
- break;
- default:
- error("unrecognized option `%s'", argv[optind-1]);
- fprintf(stderr, "Try `run-parts --help' for more information.\n");
- exit (1);
- }
- }
-
- /* We require exactly one argument: the directory name */
- if (optind != (argc - 1)) {
- error("missing operand");
- fprintf(stderr, "Try run-parts --help' for more information.\n");
- exit (1);
- }
-
- run_parts (argv[optind]);
-
- return exitstatus;
-}