# fcron's Makefile ########
############################
+# $Id: Makefile.in,v 1.2 2000-05-15 18:28:58 thib Exp $
+
# ********************************************************* #
# *** Begin of configurable stuffs ************************ #
$(CC) $(CFLAGS) -c $<
install: all
+
+ @echo -e "\ninstalling ...\n"
+
$(INSTALL) -m 111 -o root -s fcron $(DESTSBIN)/
$(INSTALL) -m 4111 -o root -s fcrontab $(DESTBIN)/
$(INSTALL) -m 700 -o root files/fcron.allow $(ETC)/
$(INSTALL) -m 644 -o root man/fcrontab.1 $(DESTMAN)/man1/
$(INSTALL) -m 644 -o root man/fcrontab.5 $(DESTMAN)/man5/
$(INSTALL) -m 644 -o root man/bitstring.3 $(DESTMAN)/man3/
- ./sysVinit-install "$(CFLAGS)" $(INSTALL)
+ script/sysVinit-install "$(CFLAGS)" $(INSTALL)
mkdir -p /usr/doc/fcron-$(VERSION)
- $(INSTALL) -m 644 -o root doc/* /usr/doc/fcron-$(VERSION)/
+ cd doc; $(INSTALL) -m 644 -o root README LICENSE CHANGES *.html \
+ /usr/doc/fcron-$(VERSION)/
mkdir -p $(FCRONTABS)
chmod 700 $(FCRONTABS)
+ @echo -e "\n...done\n"
+
+
uninstall:
rm -f $(DESTSBIN)/fcron
- ./sysVinit-uninstall
+ script/sysVinit-uninstall
clean:
+ @echo -e "\ncleaning up ...\n"
+
rm -f *.o
rm -f fcron fcrontab
+ @echo -e "\n...done\n"
+
vclean: clean
find ./ -name "*~" -exec rm -f {} \;
rm -f fcron*tar.gz
-doc-changes: doc/ man/
- touch doc-changes
+need_make_doc:
+# force to do a part each time it is called if placed in its depencies.
+
+doc: need_make_doc
+ @echo -e "\nupdating docs ...\n"
+
+ ./script/gen-doc $(VERSION)
+
+ @echo -e "\n...done\n"
-doc: doc-changes
- ./gen-doc $(VERSION)
- touch doc-changes
tar: vclean doc
- @(find ./ -type f | sed -e "s:^\./:fcron-$(VERSION)/:" > MANIFEST)
+ @echo -e "\ncreating archive ...\n"
+
+ echo $(VERSION) > ./VERSION
+
+ @(find ./ -type f ! -regex '.*RCS.*' -exec ci -l {} \;)
+
+ @(find ./ -type f ! -regex '.*RCS.*' | sed -e "s:^\./:fcron-$(VERSION)/:" > MANIFEST)
@(cd ..; ln -s fcron fcron-$(VERSION))
(cd ..; tar -czvf fcron-$(VERSION).src.tar.gz `cat fcron/MANIFEST`)
@(cd ..; rm -f fcron-$(VERSION))
@(cd ..; cp -f fcron-$(VERSION).src.tar.gz old-fcron-pkg/)
- @(cd ..; mv -f fcron-$(VERSION).src.tar.gz fcron/)
+
+ @echo -e "\n...done\n"
+
* `LICENSE' that comes with the fcron source distribution.
*/
-/* ALLOW.C */
+ /* $Id: allow.c,v 1.2 2000-05-15 18:28:31 thib Exp $ */
#include "fcrontab.h"
-
int
in_file(char *str, char *file)
/* return -1 if file can't be opened
* `LICENSE' that comes with the fcron source distribution.
*/
-/* CONF.C */
+ /* $Id: conf.c,v 1.2 2000-05-15 18:28:33 thib Exp $ */
#include "fcron.h"
* `LICENSE' that comes with the fcron source distribution.
*/
-/* config.h */
+ /* $Id: config.h.in,v 1.2 2000-05-15 18:28:34 thib Exp $ */
/* *********************************************************** */
* `LICENSE' that comes with the fcron source distribution.
*/
-/* DATABASE.C */
+ /* $Id: database.c,v 1.2 2000-05-15 18:28:36 thib Exp $ */
#include "fcron.h"
* `LICENSE' that comes with the fcron source distribution.
*/
- /* fcron.c */
+ /* $Id: fcron.c,v 1.2 2000-05-15 18:28:38 thib Exp $ */
#include "fcron.h"
+char rcs_info[] = "$Id: fcron.c,v 1.2 2000-05-15 18:28:38 thib Exp $";
+
void main_loop(void);
void info(void);
void usage(void);
* version, license */
{
fprintf(stderr,
+ "$Id: fcron.c,v 1.2 2000-05-15 18:28:38 thib Exp $\n"
"fcron " VERSION " - periodic command scheduler\n"
"Copyright 2000 Thibault Godouet <sphawk@free.fr>\n"
- "This program is free software; you can redistribute it\n"
- " and/or modify it under the terms of the GNU General Public\n"
- " License. See file LICENSE distributed with this program\n"
- " for more informations\n"
+ "This program is free software distributed\n"
+ "WITHOUT ANY WARRANTY.\n"
+ "See the GNU General Public License for more details.\n"
);
exit(EXIT_OK);
* `LICENSE' that comes with the fcron source distribution.
*/
-/* fcron.h */
+ /* $Id: fcron.h,v 1.2 2000-05-15 18:28:39 thib Exp $ */
#ifndef __FCRONH__
#define __FCRONH__
* `LICENSE' that comes with the fcron source distribution.
*/
-/* FCRONTAB.C */
+ /* $Id: fcrontab.c,v 1.2 2000-05-15 18:28:41 thib Exp $ */
/*
* The goal of this program is simple : giving a user interface to fcron
#include "fcrontab.h"
+char rcs_info[] = "$Id: fcrontab.c,v 1.2 2000-05-15 18:28:41 thib Exp $";
void info(void);
void usage(void);
* version, license */
{
fprintf(stderr,
+ "$Id: fcrontab.c,v 1.2 2000-05-15 18:28:41 thib Exp $\n"
"fcrontab " VERSION " - user interface to daemon fcron\n"
"Copyright 2000 Thibault Godouet <sphawk@free.fr>\n"
- "This program is free software; you can redistribute it\n"
- " and/or modify it under the terms of the GNU General Public\n"
- " License. See file LICENSE distributed with this program\n"
- " for more informations\n"
+ "This program is free software distributed\n"
+ "WITHOUT ANY WARRANTY.\n"
+ "See the GNU General Public License for more details.\n"
);
exit(EXIT_OK);
* `LICENSE' that comes with the fcron source distribution.
*/
-/* fcrontab.h */
+ /* $Id: fcrontab.h,v 1.2 2000-05-15 18:28:42 thib Exp $ */
#ifndef __FCRONTABH__
#define __FCRONTABH__
* `LICENSE' that comes with the fcron source distribution.
*/
-/* FILECONF.C */
+ /* $Id: fileconf.c,v 1.2 2000-05-15 18:28:44 thib Exp $ */
#include "fcrontab.h"
* `LICENSE' that comes with the fcron source distribution.
*/
-/* global.h */
-
+ /* $Id: global.h,v 1.2 2000-05-15 18:28:53 thib Exp $ */
#ifndef __GLOBALH__
#define __GLOBALH__
* `LICENSE' that comes with the fcron source distribution.
*/
-/* JOB.C */
+ /* $Id: job.c,v 1.2 2000-05-15 18:28:55 thib Exp $ */
#include "fcron.h"
* `LICENSE' that comes with the fcron source distribution.
*/
-/* log.c */
+ /* $Id: log.c,v 1.2 2000-05-15 18:28:56 thib Exp $ */
/* This code is inspired by Anacron's sources of
Itai Tzur <itzur@actcom.co.il> ( thanks to him ) */
# Install fcron under SysV system.
#
+# $Id: boot-install,v 1.2 2000-05-15 18:28:24 thib Exp $
+
# take two arguments : first is the compilation line arguments, in order
# to determine if fcron should be installed with debugs options,
# and the second is the name of the BSD-like install program
else
if echo $1 > grep "-DDEBUG"; then
- $2 -m 755 -o root sysVinit-launcher-debug /etc/rc.d/init.d/fcron
+ $2 -m 755 -o root script/sysVinit-launcher-debug /etc/rc.d/init.d/fcron
else
- $2 -m 755 -o root sysVinit-launcher /etc/rc.d/init.d/fcron
+ $2 -m 755 -o root script/sysVinit-launcher /etc/rc.d/init.d/fcron
fi
cd /etc/rc.d/rc3.d/
# Uninstall fcron under SysV system.
#
+# $Id: boot-uninstall,v 1.2 2000-05-15 18:28:25 thib Exp $
+
PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
rm -f /etc/rc.d/init.d/fcron-debug
#!/bin/sh
-cd man
-for i in *
-do
- echo $i
- sed -e "s:\"fcron version .* - .*\":\"fcron version $1 - `date +%D`\":" < $i > tmp
- mv -f tmp $i
- chown $USER $i
- rm -f tmp
- groff -Thtml -mandoc $i > ../doc/$i.html
-done
+# $Id: gen-doc,v 1.2 2000-05-15 18:28:22 thib Exp $
+
+if test $UID -eq 0; then
+ su $USER
+fi
+
+PREVIOUS=`cat ./VERSION`
-cd ../doc
+
+if test $PREVIOUS != $1; then
+ cd man
+ for i in *
+ do
+ if test $i != RCS; then
+ echo $i
+ sed -e "s:fcron version .* :fcron version $1 :" < $i > tmp
+ mv -f tmp $i
+ rm -f tmp
+ fi
+ done
+
+
+ cd ../doc
+ for i in *
+ do
+ if test $i != RCS; then
+ echo $i
+ sed -e "s:fcron version .* :fcron version $1 :" < $i > tmp
+ mv -f tmp $i
+ rm -f tmp
+ fi
+ done
+fi
+
+
+cd man
for i in *
do
- echo $i
- sed -e "s:<-- fcron version .* - .* -->:<-- fcron version $1 - `date +%D` -->:" < $i > tmp
- mv -f tmp $i
- chown $USER $i
- rm -f tmp
+ if test $i != RCS; then
+ echo $i
+ groff -Thtml -mandoc $i > ./tmp
+ sed "s:<body>:<body BGCOLOR="\#000000" TEXT="\#FFFFFF">\
+ <h1>$i</h1><br>:I" < ./tmp > ../doc/$i.html
+ rm -f ./tmp
+ fi
done
# processname: fcron
# config: /var/spool/fcron/*
+# $Id: sysVinit-launcher,v 1.2 2000-05-15 18:28:27 thib Exp $
+
FUNCTION=0
# Source function library.
* `LICENSE' that comes with the fcron source distribution.
*/
-/* SUBS.C */
+ /* $Id: subs.c,v 1.2 2000-05-15 18:28:59 thib Exp $ */
#include "global.h"