\n\
-l, --location include event's location in that
\n\
-f, --footer=TEXT add text at the bottom of the HTML file\n\
-z, --timezone=country/city adjust for this timezone (default: GMT)\n\
start is of the form yyyymmdd, e.g., 20020927 (27 Sep 2002)\n\
duration is in days or weeks, e.g., P5W (5 weeks) or P60D (60 days)\n\
file is an iCalendar file, default is standard input\n"
/* Long command line options */
static struct option options[] = {
{"class", 1, 0, 'p'},
{"not-class", 1, 0, 'P'},
{"category", 1, 0, 'c'},
{"not-category", 1, 0, 'C'},
{"description", 0, 0, 'd'},
{"location", 0, 0, 'l'},
{"footer", 1, 0, 'f'},
{"timezone", 1, 0, 'z'},
{0, 0, 0, 0}
};
#define OPTIONS "dlp:P:c:C:f:z:"
static const char *months[] = {"", "January", "February", "March", "April",
"May", "June", "July", "August", "September",
"October", "November", "December"};
/* Structure for storing applicable events */
typedef struct _event_item {
struct icaltimetype start;
struct icaltimetype end;
icalcomponent *event;
} event_item;
static event_item *events = NULL;
static int nrevents = 0;
/* fatal -- print error message and exit with errcode */
static void fatal(int errcode, const char *message,...)
{
va_list args;
va_start(args, message);
vfprintf(stderr, message, args);
va_end(args);
exit(errcode);
}
/* compare_events -- compare two event_items (for qsort) */
static int compare_events(const void *aa, const void *bb)
{
event_item *a = (event_item *)aa;
event_item *b = (event_item *)bb;
int h;
h = icaltime_compare(a->start, b->start);
if (h == 0) h = icaltime_compare(a->end, b->end);
return h;
}
/* read_stream -- read size bytes into s from stream d */
static char* read_stream(char *s, size_t size, void *d)
{
return fgets(s, size, (FILE*)d);
}
/* print_header -- print boilerplate at start of output */
static void print_header(struct icaltimetype start, struct icaldurationtype dur)
{
struct icaltimetype end = icaltime_add(start, dur);
printf("\n");
printf("\n");
printf("Calendar %d %s %d - %d %s %d\n",
start.day, months[start.month], start.year,
end.day, months[end.month], end.year);
printf("\n\n");
}
/* print_footer -- print boilerplate at end of output */
static void print_footer(const char *footer)
{
if (footer) printf("%s\n", footer);
}
/* print_as_one_word -- replace non-alphanumeric characters by dashes */
static void print_as_one_word(const char *s)
{
const char *t;
for (t = s; *t; t++)
if (isalnum(*t)) putchar(*t);
else putchar('-');
}
/* print_escaped -- printf with <, >, & and " escaped */
static void print_escaped(const char *s)
{
const char *t;
for (t = s; *t; t++)
switch (*t) {
case '<': printf("<"); break;
case '>': printf(">"); break;
case '&': printf("&"); break;
default: putchar(*t);
}
}
#if 0
/* print_attribute -- printf with &, " and newlines escaped */
static void print_attribute(const char *s)
{
const char *t;
for (t = s; *t; t++)
switch (*t) {
case '<': printf("<"); break;
case '>': printf(">"); break;
case '&': printf("&"); break;
case '"': printf("""); break;
case '\n': printf("
"); break;
default: putchar(*t);
}
}
#endif
/* print_event -- print HTML paragraph for one event */
static void print_event(const event_item ev, const int do_description, const int do_location)
{
icaltimezone *utc = icaltimezone_get_utc_timezone();
icaltimetype start_utc, end_utc;
icalproperty *p, *desc, *loc;
int first;
printf("
\n");
/* Also add all categories as content */
first = 1;
p = icalcomponent_get_first_property(ev.event, ICAL_CATEGORIES_PROPERTY);
while (p) {
if (first) first = 0; else printf(", ");
print_as_one_word(icalproperty_get_categories(p));
p = icalcomponent_get_next_property(ev.event, ICAL_CATEGORIES_PROPERTY);
}
printf("\n");
/* If there is a time, print it */
start_utc = icaltime_convert_to_zone(ev.start, utc);
end_utc = icaltime_convert_to_zone(ev.end, utc);
if (ev.start.hour || ev.start.minute || ev.end.hour || ev.end.minute)
printf("%02d:%02d-%02d:%02d\n",
start_utc.year, start_utc.month, start_utc.day, start_utc.hour,
start_utc.minute, start_utc.second,
ev.start.hour, ev.start.minute,
end_utc.year, end_utc.month, end_utc.day, end_utc.hour,
end_utc.minute, end_utc.second,
ev.end.hour, ev.end.minute);
else
printf("(whole day)\n", start_utc.year, start_utc.month,
start_utc.day);
/* Print the summary */
printf("");
p = icalcomponent_get_first_property(ev.event, ICAL_SUMMARY_PROPERTY);
if (p) print_escaped(icalproperty_get_summary(p));
printf("\n");
/* If we want descriptions, check if there is one */
if (do_description)
desc = icalcomponent_get_first_property(ev.event, ICAL_DESCRIPTION_PROPERTY);
else
desc = NULL;
/* If we want locations, check if there is one */
if (do_location)
loc = icalcomponent_get_first_property(ev.event, ICAL_LOCATION_PROPERTY);
else
loc = NULL;
/* If we have a description and/or location, print them */
if (desc || loc) printf("
");
if (desc) {
printf("");
print_escaped(icalproperty_get_description(desc));
printf("");
}
if (desc && loc) printf("\n");
if (loc) {
printf("");
print_escaped(icalproperty_get_description(loc));
printf("");
}
if (desc || loc) printf("
\n");
printf("
\n\n");
}
/* print_calendar -- print monthly calendars with events */
static void print_calendar(const struct icaltimetype start,
const struct icaldurationtype duration,
const int nrevents, const event_item events[],
const int do_description, const int do_location)
{
struct icaltimetype day;
struct icaltimetype end;
char s[9];
int y, m, d, w;
int i = 0; /* Loop over events */
end = icaltime_add(start, duration);
/* Loop over the years in our period */
for (y = start.year; y <= end.year; y++) {
/* Loop over the months in this year */
for (m = (y == start.year ? start.month : 1);
m <= (y == end.year ? end.month : 12); m++) {
/* Is there a more efficient way to set day than via a string? */
sprintf(s, "%04d%02d01", y, m);
day = icaltime_from_string(s);
printf("
%s %d
\n", months[m], y);
printf("
Sunday
Monday
Tuesday
Wednesday");
printf("
Thursday
Friday
Saturday\n");
printf("
\n");
w = icaltime_day_of_week(day);
if (w != 1) { /* Empty cells until 1st of month */
printf("
\n");
for (; w > 1; w--) printf("
\n");
}
/* Skip events before this day (can only occur at very start) */
for (; i < nrevents
&& icaltime_compare_date_only(events[i].start, day) < 0; i++) ;
/* Loop over the days in this month */
for (d = 1; d <= icaltime_days_in_month(m, y); d++) {
sprintf(s, "%04d%02d%02d", y, m, d);
day = icaltime_from_string(s);
w = icaltime_day_of_week(day);
if (w == 1) printf("
\n");
printf("
%d\n\n", d);
/* Print all events on this day (the events are sorted) */
for (; i < nrevents
&& icaltime_compare_date_only(events[i].start, day) == 0; i++)
print_event(events[i], do_description, do_location);
}
printf("
\n\n");
}
}
}
/* add_to_queue -- add event to global queue of events to print */
static void add_to_queue(icalcomponent *ev, const struct icaltimetype start,
const struct icaltimetype end,
icaltimezone *tz)
{
int n = (nrevents/INC + 1) * INC;
if (!(events = realloc(events, n * sizeof(*events))))
fatal(ERR_OUT_OF_MEM, "Out of memory\n");
events[nrevents].start = icaltime_convert_to_zone(start, tz);
events[nrevents].end = icaltime_convert_to_zone(end, tz);
events[nrevents].event = ev;
nrevents++;
}
/* iterate -- process each component in the collection */
static void iterate(icalcomponent *c, struct icaltimetype periodstart,
struct icaldurationtype duration,
const char *classmask, const char *categorymask,
const char *notclassmask, const char *notcategorymask,
icaltimezone *tz)
{
const struct icaldurationtype one = {0, 1, 0, 0, 0, 0};
struct icaltimetype periodend, dtstart, dtend, next, nextend, d;
icalcomponent *h;
icalproperty *p;
struct icaldurationtype dur;
icalproperty *rrule;
struct icalrecurrencetype recur;
icalrecur_iterator *ritr;
const char *class;
periodend = icaltime_add(periodstart, duration);
/* Iterate over VEVENTs */
for (h = icalcomponent_get_first_component(c, ICAL_VEVENT_COMPONENT); h;
h = icalcomponent_get_next_component(c, ICAL_VEVENT_COMPONENT)) {
/* Check if the event is of the right class (unless we accept all) */
if (classmask || notclassmask) {
p = icalcomponent_get_first_property(h, ICAL_CLASS_PROPERTY);
class = p ? icalproperty_get_value_as_string(p) : "PUBLIC";
if (classmask && strcasecmp(classmask, class) != 0) continue;
if (notclassmask && strcasecmp(notclassmask, class) == 0) continue;
}
/* Check if the event is of the right category (unless we accept all) */
if (categorymask) {
p = icalcomponent_get_first_property(h, ICAL_CATEGORIES_PROPERTY);
while (p && strcasecmp(categorymask, icalproperty_get_categories(p)))
p = icalcomponent_get_next_property(h, ICAL_CATEGORIES_PROPERTY);
if (!p) continue; /* No category was equal to categorymask */
}
if (notcategorymask) {
p = icalcomponent_get_first_property(h, ICAL_CATEGORIES_PROPERTY);
while (p && strcasecmp(notcategorymask, icalproperty_get_categories(p)))
p = icalcomponent_get_next_property(h, ICAL_CATEGORIES_PROPERTY);
if (p) continue; /* Some category equal to notcategorymask */
}
/* Get start time and recurrence rule (if any) */
dtstart = icalcomponent_get_dtstart(h);
rrule = icalcomponent_get_first_property(h, ICAL_RRULE_PROPERTY);
if (!rrule) { /* Not recurring */
/* Check if this event is at least partially within our period */
if (icaltime_compare(dtstart, periodend) <= 0) {
dtend = icalcomponent_get_dtend(h);
if (dtend.year + dtend.month + dtend.day + dtend.hour + dtend.minute +
dtend.second == 0) dtend = dtstart;
if (icaltime_compare(periodstart, dtend) <= 0) {
/* Add to as many days as it spans */
d = dtstart;
do {
add_to_queue(h, d, dtend, tz);
d = icaltime_add(d, one);
} while (icaltime_compare(d, dtend) < 0);
}
}
} else { /* Recurring event */
if (icaltime_compare(dtstart, periodend) <= 0) {
/* Iterate to find occurrences within our period */
dur = icalcomponent_get_duration(h);
recur = icalproperty_get_rrule(rrule);
ritr = icalrecur_iterator_new(recur, dtstart);
while (next = icalrecur_iterator_next(ritr),
!icaltime_is_null_time(next)
&& icaltime_compare(next, periodend) <= 0) {
nextend = icaltime_add(next, dur);
if (icaltime_compare(nextend, periodstart) >= 0)
add_to_queue(h, next, nextend, tz);
}
/* Clean up */
icalrecur_iterator_free(ritr);
}
}
}
}
/* main */
int main(int argc, char *argv[])
{
FILE* stream;
icalcomponent *comp;
icalparser *parser;
struct icaltimetype periodstart;
struct icaldurationtype duration;
char *footer = NULL, *class = NULL, *category = NULL;
char *not_class = NULL, *not_category = NULL;
char c;
int dummy1, dummy2, dummy3, do_description = 0, do_location = 0;
icaltimezone *tz;
/* We handle errors ourselves */
icalerror_errors_are_fatal = 0;
icalerror_clear_errno();
/* icaltimezone_set_tzid_prefix("/kde.org/Olson_20080523_1/"); */
/* icaltimezone_set_tzid_prefix(""); */
set_zone_directory("/usr/share/apps/libical/zoneinfo/"); /* TO DO */
tz = icaltimezone_get_utc_timezone(); /* Default */
/* Read commandline */
while ((c = getopt_long(argc, argv, OPTIONS, options, NULL)) != -1) {
switch (c) {
case 'p': class = strdup(optarg); break;
case 'P': not_class = strdup(optarg); break;
case 'c': category = strdup(optarg); break;
case 'C': not_category = strdup(optarg); break;
case 'd': do_description = 1; break;
case 'l': do_location = 1; break;
case 'f': footer = strdup(optarg); break;
case 'z': tz = icaltimezone_get_builtin_timezone(optarg); break;
default: fatal(ERR_USAGE, USAGE);
}
}
if (optind == argc) fatal(ERR_USAGE, USAGE);
if (sscanf(argv[optind], "%04d%02d%02d", &dummy1, &dummy2, &dummy3) < 3)
fatal(ERR_DATE, "Incorrect date '%s', must be YYYYMMDD.\n", argv[optind]);
periodstart = icaltime_from_string(argv[optind]);
if (icalerrno) ; /* TO DO */
optind++;
if (optind == argc) fatal(ERR_USAGE, USAGE);
duration = icaldurationtype_from_string(argv[optind]);
/*
if (icalerrno)
fatal(ERR_DATE, "Incorrect duration '%s', must be PnW or PnD.\n", argv[optind]);
*/
optind++;
stream = optind == argc ? stdin : fopen(argv[optind], "r");
if (!stream) {perror(argv[optind]); exit(1);}
if (optind + 1 < argc) fatal(ERR_USAGE, USAGE);
/* Create a new parser object */
parser = icalparser_new();
/* Tell the parser what input stream it should use */
icalparser_set_gen_data(parser, stream);
/* Let the parser read the file and return all components */
if (! (comp = icalparser_parse(parser, read_stream)))
fatal(ERR_PARSE, "Parse error: %s\n", icalerror_strerror(icalerrno));
/* Process the resulting list of components */
iterate(comp, periodstart, duration,
class, not_class, category, not_category, tz);
/* Sort the result */
qsort(events, nrevents, sizeof(*events), compare_events);
/* Print the sorted results */
print_header(periodstart, duration);
print_calendar(periodstart, duration, nrevents, events, do_description, do_location);
print_footer(footer);
/* Clean up */
icalcomponent_free(comp);
icalparser_free(parser);
return 0;
}
ical2html-2.1/icalfilter.c 000644 000765 000024 00000012711 11350241330 015606 0 ustar 00bert staff 000000 000000 /*
* icalfilter -- filter an iCalendar file
*
* Author: Bert Bos
* Created: 30 Sep 2002
*/
#include "config.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
/*
#include
#include
#include
#include
*/
#include
#include
/*
#include
#include
*/
#define PRODID "-//W3C//NONSGML icalfilter 0.1//EN"
#define ERR_OUT_OF_MEM 1 /* Program exit codes */
#define ERR_USAGE 2
#define ERR_DATE 3
#define ERR_PARSE 4
#define ERR_FILEIO 5
#define ERR_ICAL_ERR 6 /* Other error */
#define USAGE "Usage: ical2html [options] input output\n\
-p, --class=CLASS only (PUBLIC, CONFIDENTIAL, PRIVATE, NONE)\n\
-P, --not-class=CLASS exclude (PUBLIC, CONFIDENTIAL, PRIVATE, NONE)\n\
-c, --category=CATEGORY only events of this category\n\
-C, --not-category=CATEGORY exclude events of this category\n\
input and output are iCalendar files\n"
/* Long command line options */
static struct option options[] = {
{"class", 1, 0, 'p'},
{"not-class", 1, 0, 'P'},
{"category", 1, 0, 'c'},
{"not-category", 1, 0, 'C'},
{0, 0, 0, 0}
};
#define OPTIONS "p:P:c:C:"
/* Structure for storing applicable events */
typedef struct _event_item {
struct icaltimetype start;
struct icaltimetype end;
icalcomponent *event;
} event_item;
/* fatal -- print error message and exit with errcode */
static void fatal(int errcode, const char *message,...)
{
va_list args;
va_start(args, message);
vfprintf(stderr, message, args);
va_end(args);
exit(errcode);
}
/* read_stream -- read size bytes into s from stream d */
static char* read_stream(char *s, size_t size, void *d)
{
return fgets(s, size, (FILE*)d);
}
/* main */
int main(int argc, char *argv[])
{
FILE* stream;
icalcomponent *comp;
icalparser *parser;
char *classmask = NULL, *categorymask = NULL;
char *notclassmask = NULL, *notcategorymask = NULL;
char c;
const char *class;
icalset *out;
icalcomponent *h, *next, *newset;
icalproperty *p;
/* We handle errors ourselves */
icalerror_errors_are_fatal = 0;
icalerrno = 0;
/* Read commandline */
while ((c = getopt_long(argc, argv, OPTIONS, options, NULL)) != -1) {
switch (c) {
case 'p': classmask = strdup(optarg); break;
case 'P': notclassmask = strdup(optarg); break;
case 'c': categorymask = strdup(optarg); break;
case 'C': notcategorymask = strdup(optarg); break;
default: fatal(ERR_USAGE, USAGE);
}
}
/* Get input file name */
if (optind == argc) fatal(ERR_USAGE, USAGE);
stream = optind == argc ? stdin : fopen(argv[optind], "r");
if (!stream) fatal(ERR_FILEIO, "%s: %s\n", argv[optind], strerror(errno));
optind++;
/* Get output file name */
if (optind == argc) fatal(ERR_USAGE, USAGE);
(void) unlink(argv[optind]); /* Remove output file if it already exists */
out = icalfileset_new(argv[optind]);
if (!out) fatal(ERR_FILEIO, "%s: %s\n", argv[optind], strerror(errno));
/* Should have no more arguments */
if (optind + 1 != argc) fatal(ERR_USAGE, USAGE);
/* Create a new parser object */
parser = icalparser_new();
/* Tell the parser what input stream it should use */
icalparser_set_gen_data(parser, stream);
/* Let the parser read the file and return all components */
if (! (comp = icalparser_parse(parser, read_stream)))
fatal(ERR_PARSE, "Parse error: %s\n", icalerror_strerror(icalerrno));
icalparser_free(parser);
/* Initialize a new VCALENDAR */
newset = icalcomponent_vanew(ICAL_VCALENDAR_COMPONENT,
icalproperty_new_version("2.0"),
icalproperty_new_prodid(PRODID),
0);
/* Iterate over VEVENTs */
for (h = icalcomponent_get_first_component(comp, ICAL_VEVENT_COMPONENT);
h; h = next) {
next = icalcomponent_get_next_component(comp, ICAL_VEVENT_COMPONENT);
/* Check if the event is of the right class (unless we accept all) */
if (classmask || notclassmask) {
p = icalcomponent_get_first_property(h, ICAL_CLASS_PROPERTY);
class = p ? icalvalue_as_ical_string(icalproperty_get_value(p))
: "NONE";
if (classmask && strcasecmp(classmask, class) != 0) continue;
if (notclassmask && strcasecmp(notclassmask, class) == 0) continue;
}
/* Check if the event is of the right category (unless we accept all) */
if (categorymask) {
p = icalcomponent_get_first_property(h, ICAL_CATEGORIES_PROPERTY);
while (p && strcasecmp(categorymask, icalproperty_get_categories(p)))
p = icalcomponent_get_next_property(h, ICAL_CATEGORIES_PROPERTY);
if (!p) continue; /* No category was equal to categorymask */
}
if (notcategorymask) {
p = icalcomponent_get_first_property(h, ICAL_CATEGORIES_PROPERTY);
while (p && strcasecmp(notcategorymask, icalproperty_get_categories(p)))
p = icalcomponent_get_next_property(h, ICAL_CATEGORIES_PROPERTY);
if (p) continue; /* Some category equal to notcategorymask */
}
/* The event passed our filters, so add it to the output set */
icalcomponent_remove_component(comp, h); /* Move from comp... */
icalcomponent_add_component(newset, h); /* ... to out */
}
/* Put new vcalendar in output file, flush to disk and close file */
icalfileset_add_component(out, newset);
icalfileset_free(out);
/* Clean up */
icalcomponent_free(comp);
return 0;
}
ical2html-2.1/icalmerge.c 000644 000765 000024 00000021031 12563474226 015436 0 ustar 00bert staff 000000 000000 /*
* icalmerge -- merge iCalendar files, keeping the newer of any duplicate events
*
* Author: Bert Bos
* Created: 30 Sep 2002
*/
#include "config.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define PRODID "-//W3C//NONSGML icalmerge " VERSION "//EN"
#define ERR_OUT_OF_MEM 1 /* Program exit codes */
#define ERR_USAGE 2
#define ERR_DATE 3
#define ERR_PARSE 4
#define ERR_FILEIO 5
#define ERR_ICAL_ERR 6 /* Other error */
#define ERR_HASH 7 /* Hash failure */
#define USAGE "Usage: ical2html input [input...] output\n\
inputs and output are iCalendar files\n"
/* Long command line options */
static struct option options[] = {
{0, 0, 0, 0}
};
#define OPTIONS ""
/* fatal -- print error message and exit with errcode */
static void fatal(int errcode, const char *message,...)
{
va_list args;
va_start(args, message);
vfprintf(stderr, message, args);
va_end(args);
exit(errcode);
}
/* debug -- print message on stderr */
static void debug(const char *message,...)
{
#ifdef DEBUG
va_list args;
va_start(args, message);
vfprintf(stderr, message, args);
va_end(args);
#endif /* DEBUG */
}
#ifdef HAVE_SEARCH_H
# include
#else
/*
* hsearch() on Mac OS X 10.1.2 appears to be broken: there is no
* search.h, there is a search() in the C library, but it doesn't work
* properly. We include some hash functions here, protected by
* HAVE_SEARCH_H. Hopefully when search.h appears in Mac OS X,
* hsearch() will be fixed at the same time...
*/
typedef struct entry {char *key; void *data;} ENTRY;
typedef enum {FIND, ENTER} ACTION;
static ENTRY *htab;
static int *htab_index1, *htab_index2;
static unsigned int htab_size = 0;
static unsigned int htab_inited;
/* isprime -- test if n is a prime number */
static int isprime(unsigned int n)
{
/* Simplistic algorithm, probably good enough for now */
unsigned int i;
assert(n % 2); /* n not even */
for (i = 3; i * i < n; i += 2) if (n % i == 0) return 0;
return 1;
}
/* hcreate -- create a hash table for at least nel entries */
static int hcreate(size_t nel)
{
/* Change nel to next higher prime */
for (nel |= 1; !isprime(nel); nel += 2) ;
/* Allocate hash table and array to keep track of initialized entries */
if (! (htab = malloc(nel * sizeof(*htab)))) return 0;
if (! (htab_index1 = malloc(nel * sizeof(*htab_index1)))) return 0;
if (! (htab_index2 = malloc(nel * sizeof(*htab_index2)))) return 0;
htab_inited = 0;
htab_size = nel;
return 1;
}
#if 0
/* hdestroy -- deallocate hash table */
static void hdestroy(void)
{
assert(htab_size);
free(htab_index1);
free(htab_index2);
free(htab);
htab_size = 0;
}
#endif
/* hsearch -- search for and/or insert an entry in the hash table */
static ENTRY *hsearch(ENTRY item, ACTION action)
{
unsigned int hval, i;
char *p;
assert(htab_size); /* There must be a hash table */
/* Compute a hash value */
#if 1
/* This function suggested by Dan Bernstein */
for (hval = 5381, p = item.key; *p; p++) hval = (hval * 33) ^ *p;
#else
i = hval = strlen(item.key);
do {i--; hval = (hval << 1) + item.key[i];} while (i > 0);
#endif
hval %= htab_size;
/* if (action == ENTER) debug("%d\n", hval); */
/* Look for either an empty slot or an entry with the wanted key */
i = hval;
while (htab_index1[i] < htab_inited
&& htab_index2[htab_index1[i]] == i
&& strcmp(htab[i].key, item.key) != 0) {
i = (i + 1) % htab_size; /* "Open" hash method */
if (i == hval) return NULL; /* Made full round */
}
/* Now we either have an empty slot or an entry with the same key */
if (action == ENTER) {
htab[i].key = item.key; /* Put the item in this slot */
htab[i].data = item.data;
if (htab_index1[i] >= htab_inited || htab_index2[htab_index1[i]] != i) {
/* Item was not yet used, mark it as used */
htab_index1[i] = htab_inited;
htab_index2[htab_inited] = i;
htab_inited++;
}
return &htab[i];
} else if (htab_index1[i] < htab_inited && htab_index2[htab_index1[i]] == i)
return &htab[i]; /* action == FIND, found key */
return NULL; /* Found empty slot */
}
#endif /* HAVE_SEARCH_H */
/* merge -- add b to a, keeping only newer entries in case of duplicates */
static void merge(icalcomponent **a, icalcomponent *b)
{
static int first_time = 1;
icalcomponent *h, *next;
icalproperty *mod_a, *mod_b;
struct icaltimetype modif_a, modif_b;
icalproperty *uid;
ENTRY *e, e1;
/* Create the hash table */
if (first_time) {
if (! hcreate(10000)) fatal(ERR_HASH, "%s\n", strerror(errno));
first_time = 0;
}
/* Iterate over VEVENTs */
for (h = icalcomponent_get_first_component(b, ICAL_VEVENT_COMPONENT);
h; h = next) {
next = icalcomponent_get_next_component(b, ICAL_VEVENT_COMPONENT);
uid = icalcomponent_get_first_property(h, ICAL_UID_PROPERTY);
/*debug("%s", uid ? icalproperty_get_uid(uid) : "NO UID!?");*/
if (!uid) continue; /* Error in iCalendar file */
e1.key = strdup(icalproperty_get_uid(uid));
if (! (e = hsearch(e1, FIND))) {
/* New UID, add the VEVENT to the hash and to the set a */
icalcomponent_remove_component(b, h); /* Move from b... */
icalcomponent_add_component(*a, h); /* ... to a */
e1.data = h;
if (! (e = hsearch(e1, ENTER)))
fatal(ERR_OUT_OF_MEM, "No room in hash table\n");
/*debug(" (added %lx)\n", h);*/
} else {
/* Already an entry with this UID, compare modified dates */
/*debug(" (found %lx", e->data);*/
mod_a = icalcomponent_get_first_property((icalcomponent*)e->data,
ICAL_LASTMODIFIED_PROPERTY);
if (!mod_a) continue; /* Hmmm... */
modif_a = icalproperty_get_lastmodified(mod_a);
mod_b = icalcomponent_get_first_property(h, ICAL_LASTMODIFIED_PROPERTY);
if (!mod_b) continue; /* Hmmm... */
modif_b = icalproperty_get_lastmodified(mod_b);
if (icaltime_compare(modif_a, modif_b) == -1) {
/* a is older than b, so replace it */
icalcomponent_remove_component(*a, (icalcomponent*)e->data);
icalcomponent_remove_component(b, h); /* Move from b... */
icalcomponent_add_component(*a, h); /* ... to a */
e->data = h;
/*debug(" replaced)\n");*/
} else {
/*debug(" ignored)\n");*/
}
free(e1.key);
}
}
}
/* read_stream -- read size bytes into s from stream d */
static char* read_stream(char *s, size_t size, void *d)
{
return fgets(s, size, (FILE*)d);
}
/* main */
int main(int argc, char *argv[])
{
FILE* stream;
icalcomponent *comp;
icalparser *parser;
char c;
icalset *out;
icalcomponent *newset;
/* We handle errors ourselves */
icalerror_errors_are_fatal = 0;
icalerrno = 0;
/* Read commandline */
while ((c = getopt_long(argc, argv, OPTIONS, options, NULL)) != -1) {
switch (c) {
default: fatal(ERR_USAGE, USAGE);
}
}
/* Initialize a new, empty icalendar */
newset = icalcomponent_vanew(ICAL_VCALENDAR_COMPONENT,
icalproperty_new_version("2.0"),
icalproperty_new_prodid(PRODID),
0);
/* Loop over remaining file arguments, except the last */
if (optind >= argc - 1) fatal(ERR_USAGE, USAGE);
while (optind != argc - 1) {
/* Open the file */
stream = fopen(argv[optind], "r");
if (!stream) fatal(ERR_FILEIO, "%s: %s\n", argv[optind], strerror(errno));
/* Create a new parser object */
/* Tell the parser what input stream it should use */
/* Let the parser read the file and return all components */
parser = icalparser_new();
icalparser_set_gen_data(parser, stream);
if (! (comp = icalparser_parse(parser, read_stream)))
fatal(ERR_PARSE, "Parse error: %s\n", icalerror_strerror(icalerrno));
icalparser_free(parser);
if (fclose(stream) != 0)
fatal(ERR_FILEIO, "%s: %s\n", argv[optind], strerror(errno));
/* Add all found components to a hash table, removing duplicates */
merge(&newset, comp);
optind++;
}
/* Get output file name */
(void) unlink(argv[optind]); /* Remove output file if it already exists */
out = icalfileset_new(argv[optind]);
if (!out) fatal(ERR_FILEIO, "%s: %s\n", argv[optind], strerror(errno));
/* Put new icalendar in output file, flush to disk and close file */
icalfileset_add_component(out, newset);
icalfileset_free(out);
/* Clean up */
/* icalcomponent_free(newset); */
return 0;
}
ical2html-2.1/INSTALL 000644 000765 000024 00000036332 11350266540 014374 0 ustar 00bert staff 000000 000000 Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without warranty of any kind.
Basic Installation
==================
Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package. Some packages provide this
`INSTALL' file but do not implement all of the features documented
below. The lack of an optional feature in a given package is not
necessarily a bug. More recommendations for GNU packages can be found
in *note Makefile Conventions: (standards)Makefile Conventions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.
4. Type `make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
user, and only the `make install' phase executed with root
privileges.
5. Optionally, type `make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
regular user, particularly if the prior `make install' required
root privileges, verifies that the installation completed
correctly.
6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
7. Often, you can also type `make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.
8. Some packages, particularly those that use Automake, provide `make
distcheck', which can by used by developers to test that all other
targets like `make install' and `make uninstall' work correctly.
This target is generally not run by end users.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c99 CFLAGS=-g LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'. This
is known as a "VPATH" build.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.
On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
"universal" binaries--by specifying multiple `-arch' options to the
compiler but only a single `-arch' option to the preprocessor. Like
this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"
This is not guaranteed to produce working output in all cases, you
may have to build one architecture at a time and combine the results
using the `lipo' tool if you have problems.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX', where PREFIX must be an
absolute file name.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them. In general, the
default for these options is expressed in terms of `${prefix}', so that
specifying just `--prefix' will affect all of the other directory
specifications that were not explicitly provided.
The most portable way to affect installation locations is to pass the
correct locations to `configure'; however, many packages provide one or
both of the following shortcuts of passing variable assignments to the
`make install' command line to change installation locations without
having to reconfigure or recompile.
The first method involves providing an override variable for each
affected directory. For example, `make install
prefix=/alternate/directory' will choose an alternate location for all
directory configuration variables that were expressed in terms of
`${prefix}'. Any directories that were specified during `configure',
but not in terms of `${prefix}', must each be overridden at install
time for the entire installation to be relocated. The approach of
makefile variable overrides for each directory variable is required by
the GNU Coding Standards, and ideally causes no recompilation.
However, some platforms have known limitations with the semantics of
shared libraries that end up requiring recompilation when using this
method, particularly noticeable in packages that use GNU Libtool.
The second method involves providing the `DESTDIR' variable. For
example, `make install DESTDIR=/alternate/directory' will prepend
`/alternate/directory' before all installation names. The approach of
`DESTDIR' overrides is not required by the GNU Coding Standards, and
does not work on platforms that have drive letters. On the other hand,
it does better at avoiding recompilation issues, and works well even
when some directory options were not specified in terms of `${prefix}'
at `configure' time.
Optional Features
=================
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Some packages offer the ability to configure how verbose the
execution of `make' will be. For these packages, running `./configure
--enable-silent-rules' sets the default to minimal output, which can be
overridden with `make V=1'; while running `./configure
--disable-silent-rules' sets the default to verbose, which can be
overridden with `make V=0'.
Particular systems
==================
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
CC is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
parse its `' header file. The option `-nodtk' can be used as
a workaround. If GNU CC is not installed, it is therefore recommended
to try
./configure CC="cc"
and if that doesn't work, try
./configure CC="cc -nodtk"
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
directory contains several dysfunctional programs; working variants of
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
in your `PATH', put it _after_ `/usr/bin'.
On Haiku, software installed for all users goes in `/boot/common',
not `/usr/local'. It is recommended to use the following options:
./configure --prefix=/boot/common
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS
KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf bug. Until the bug is fixed you can use this workaround:
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`--help'
`-h'
Print a summary of all of the options to `configure', and exit.
`--help=short'
`--help=recursive'
Print a summary of the options unique to this package's
`configure', and exit. The `short' variant lists options used
only in the top level, while the `recursive' variant lists options
also present in any nested packages.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--prefix=DIR'
Use DIR as the installation prefix. *note Installation Names::
for more details, including other options available for fine-tuning
the installation locations.
`--no-create'
`-n'
Run the configure checks, but stop before creating any output
files.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.
ical2html-2.1/install-sh 000755 000765 000024 00000032537 11350266540 015352 0 ustar 00bert staff 000000 000000 #!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit=${DOITPROG-}
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_glob='?'
initialize_posix_glob='
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir=
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
no_target_directory=
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
shift;;
-T) no_target_directory=true;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call `install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
trap '(exit $?); exit' 1 2 13 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names starting with `-'.
case $src in
-*) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# Protect names starting with `-'.
case $dst in
-*) dst=./$dst;;
esac
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writeable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
-*) prefix='./';;
*) prefix='';;
esac
eval "$initialize_posix_glob"
oIFS=$IFS
IFS=/
$posix_glob set -f
set fnord $dstdir
shift
$posix_glob set +f
IFS=$oIFS
prefixes=
for d
do
test -z "$d" && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
eval "$initialize_posix_glob" &&
$posix_glob set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
$posix_glob set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd -f "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
ical2html-2.1/Makefile.am 000644 000765 000024 00000000265 11350266361 015374 0 ustar 00bert staff 000000 000000 bin_PROGRAMS = ical2html icalfilter icalmerge
dist_data_DATA = calendar.css
# Depending on the version of libical, some header files are here:
AM_CPPFLAGS = -I/usr/include/libical
ical2html-2.1/Makefile.in 000644 000765 000024 00000053361 11350271732 015410 0 ustar 00bert staff 000000 000000 # Makefile.in generated by automake 1.11.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
bin_PROGRAMS = ical2html$(EXEEXT) icalfilter$(EXEEXT) \
icalmerge$(EXEEXT)
subdir = .
DIST_COMMON = README $(am__configure_deps) $(dist_data_DATA) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
ChangeLog INSTALL NEWS depcomp install-sh missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(datadir)"
PROGRAMS = $(bin_PROGRAMS)
ical2html_SOURCES = ical2html.c
ical2html_OBJECTS = ical2html.$(OBJEXT)
ical2html_LDADD = $(LDADD)
icalfilter_SOURCES = icalfilter.c
icalfilter_OBJECTS = icalfilter.$(OBJEXT)
icalfilter_LDADD = $(LDADD)
icalmerge_SOURCES = icalmerge.c
icalmerge_OBJECTS = icalmerge.$(OBJEXT)
icalmerge_LDADD = $(LDADD)
DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = ical2html.c icalfilter.c icalmerge.c
DIST_SOURCES = ical2html.c icalfilter.c icalmerge.c
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
DATA = $(dist_data_DATA)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
{ test ! -d "$(distdir)" \
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr "$(distdir)"; }; }
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
dist_data_DATA = calendar.css
# Depending on the version of libical, some header files are here:
AM_CPPFLAGS = -I/usr/include/libical
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-am
.SUFFIXES:
.SUFFIXES: .c .o .obj
am--refresh:
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(top_srcdir)/configure: $(am__configure_deps)
$(am__cd) $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):
config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h1; \
$(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in: $(am__configure_deps)
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
rm -f stamp-h1
touch $@
distclean-hdr:
-rm -f config.h stamp-h1
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p; \
then echo "$$p"; echo "$$p"; else :; fi; \
done | \
sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
sed 'N;N;N;s,\n, ,g' | \
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
if ($$2 == $$4) files[d] = files[d] " " $$1; \
else { print "f", $$3 "/" $$4, $$1; } } \
END { for (d in files) print "f", d, files[d] }' | \
while read type dir files; do \
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
test -z "$$files" || { \
echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
} \
; done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
files=`for p in $$list; do echo "$$p"; done | \
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-e 's/$$/$(EXEEXT)/' `; \
test -n "$$list" || exit 0; \
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
cd "$(DESTDIR)$(bindir)" && rm -f $$files
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
ical2html$(EXEEXT): $(ical2html_OBJECTS) $(ical2html_DEPENDENCIES)
@rm -f ical2html$(EXEEXT)
$(LINK) $(ical2html_OBJECTS) $(ical2html_LDADD) $(LIBS)
icalfilter$(EXEEXT): $(icalfilter_OBJECTS) $(icalfilter_DEPENDENCIES)
@rm -f icalfilter$(EXEEXT)
$(LINK) $(icalfilter_OBJECTS) $(icalfilter_LDADD) $(LIBS)
icalmerge$(EXEEXT): $(icalmerge_OBJECTS) $(icalmerge_DEPENDENCIES)
@rm -f icalmerge$(EXEEXT)
$(LINK) $(icalmerge_OBJECTS) $(icalmerge_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ical2html.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/icalfilter.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/icalmerge.Po@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
install-dist_dataDATA: $(dist_data_DATA)
@$(NORMAL_INSTALL)
test -z "$(datadir)" || $(MKDIR_P) "$(DESTDIR)$(datadir)"
@list='$(dist_data_DATA)'; test -n "$(datadir)" || list=; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(datadir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(datadir)" || exit $$?; \
done
uninstall-dist_dataDATA:
@$(NORMAL_UNINSTALL)
@list='$(dist_data_DATA)'; test -n "$(datadir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
test -n "$$files" || exit 0; \
echo " ( cd '$(DESTDIR)$(datadir)' && rm -f" $$files ")"; \
cd "$(DESTDIR)$(datadir)" && rm -f $$files
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
$(am__remove_distdir)
test -d "$(distdir)" || mkdir "$(distdir)"
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
-test -n "$(am__skip_mode_fix)" \
|| find "$(distdir)" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r "$(distdir)"
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
$(am__remove_distdir)
dist-lzma: distdir
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
$(am__remove_distdir)
dist-xz: distdir
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
$(am__remove_distdir)
dist-tarZ: distdir
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__remove_distdir)
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__remove_distdir)
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
$(am__remove_distdir)
dist dist-all: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.lzma*) \
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
*.tar.xz*) \
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& rm -rf $(DIST_ARCHIVES) \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
&& cd "$$am__cwd" \
|| exit 1
$(am__remove_distdir)
@(echo "$(distdir) archives ready for distribution: "; \
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
@$(am__cd) '$(distuninstallcheck_dir)' \
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS) $(DATA) config.h
installdirs:
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(datadir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
distclean: distclean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-hdr distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am: install-dist_dataDATA
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am: install-binPROGRAMS
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-binPROGRAMS uninstall-dist_dataDATA
.MAKE: all install-am install-strip
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \
dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
distcheck distclean distclean-compile distclean-generic \
distclean-hdr distclean-tags distcleancheck distdir \
distuninstallcheck dvi dvi-am html html-am info info-am \
install install-am install-binPROGRAMS install-data \
install-data-am install-dist_dataDATA install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-binPROGRAMS \
uninstall-dist_dataDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
ical2html-2.1/missing 000755 000765 000024 00000026233 11350265216 014740 0 ustar 00bert staff 000000 000000 #! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard , 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
run=:
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
# In the cases where this matters, `missing' is being run in the
# srcdir already.
if test -f configure.ac; then
configure_ac=configure.ac
else
configure_ac=configure.in
fi
msg="missing on your system"
case $1 in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
shift
"$@" && exit 0
# Exit code 63 means version mismatch. This often happens
# when the user try to use an ancient version of a tool on
# a file that requires a minimum version. In this case we
# we should proceed has if the program had been absent, or
# if --run hadn't been passed.
if test $? = 63; then
run=:
msg="probably too old"
fi
;;
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
--run try to run the given command, and emulate it if it fails
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
autom4te touch the output file, or create a stub one
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
help2man touch the output file
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
tar try tar, gnutar, gtar, then tar without non-portable flags
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
\`g' are ignored when checking the name.
Send bug reports to ."
exit $?
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing $scriptversion (GNU Automake)"
exit $?
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
esac
# normalize program name to check for.
program=`echo "$1" | sed '
s/^gnu-//; t
s/^gnu//; t
s/^g//; t'`
# Now exit if we have it, but it failed. Also exit now if we
# don't have it and --version was passed (most likely to detect
# the program). This is about non-GNU programs, so use $1 not
# $program.
case $1 in
lex*|yacc*)
# Not GNU programs, they don't have --version.
;;
tar*)
if test -n "$run"; then
echo 1>&2 "ERROR: \`tar' requires --run"
exit 1
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
exit 1
fi
;;
*)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
# Could not run --version or --help. This is probably someone
# running `$TOOL --version' or `$TOOL --help' to check whether
# $TOOL exists and not knowing $TOOL uses missing.
exit 1
fi
;;
esac
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
case $program in
aclocal*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`${configure_ac}'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`acconfig.h' or \`${configure_ac}'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case $f in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
autom4te*)
echo 1>&2 "\
WARNING: \`$1' is needed, but is $msg.
You might have modified some files without having the
proper tools for further handling them.
You can get \`$1' as part of \`Autoconf' from any GNU
archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo "#! /bin/sh"
echo "# Created by GNU Automake missing as a replacement of"
echo "# $ $@"
echo "exit 0"
chmod +x $file
exit 1
fi
;;
bison*|yacc*)
echo 1>&2 "\
WARNING: \`$1' $msg. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if test $# -ne 1; then
eval LASTARG="\${$#}"
case $LASTARG in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if test ! -f y.tab.h; then
echo >y.tab.h
fi
if test ! -f y.tab.c; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex*|flex*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if test $# -ne 1; then
eval LASTARG="\${$#}"
case $LASTARG in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if test ! -f lex.yy.c; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
help2man*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a dependency of a manual page. You may need the
\`Help2man' package in order for those modifications to take
effect. You can get \`Help2man' from any GNU archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
exit $?
fi
;;
makeinfo*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
# The file to touch is that specified with -o ...
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -z "$file"; then
# ... or it is the one specified with @setfilename ...
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '
/^@setfilename/{
s/.* \([^ ]*\) *$/\1/
p
q
}' $infile`
# ... or it is derived from the source name (dir/f.texi becomes f.info)
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
fi
# If the file does not exist, the user really needs makeinfo;
# let's fail without touching anything.
test -f $file || exit 1
touch $file
;;
tar*)
shift
# We have already tried tar in the generic part.
# Look for gnutar/gtar before invocation to avoid ugly error
# messages.
if (gnutar --version > /dev/null 2>&1); then
gnutar "$@" && exit 0
fi
if (gtar --version > /dev/null 2>&1); then
gtar "$@" && exit 0
fi
firstarg="$1"
if shift; then
case $firstarg in
*o*)
firstarg=`echo "$firstarg" | sed s/o//`
tar "$firstarg" "$@" && exit 0
;;
esac
case $firstarg in
*h*)
firstarg=`echo "$firstarg" | sed s/h//`
tar "$firstarg" "$@" && exit 0
;;
esac
fi
echo 1>&2 "\
WARNING: I can't seem to be able to run \`tar' with the given arguments.
You may want to install GNU tar or Free paxutils, or check the
command line arguments."
exit 1
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and is $msg.
You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
ical2html-2.1/NEWS 000644 000765 000024 00000000000 07545411743 014031 0 ustar 00bert staff 000000 000000 ical2html-2.1/README 000644 000765 000024 00000005327 12563476404 014234 0 ustar 00bert staff 000000 000000 ical2html takes an iCalendar file and outputs an HTML file showing one
or more months in the form of tables. Requires libical.
0. Compiling from source
1. Downloading and compiling from CVS
2. Updating to the latest CVS version
3. Command line options
4. Style sheet (calendar.css)
0) Compiling from source
------------------------
Download and unpack the ical2html-XXX.tar.gz file (where XXX is the
version number), go into the ical2html-XXX directory and type:
$ ./configure
$ make
You may want to run ./configure --help first, to see what options are
available. Or read INSTALL for general information about the configure
process.
1) Compiling from CVS
---------------------
First get the sources, begin by setting up CVS:
$ CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public
$ export CVSROOT
$ cvs login
When prompted for a password, enter "anonymous" (without the
quotes). Then let CVS download the sources:
$ cvs get Ical2html
Then configure and compile. This requires automake and autoconf to be
installed:
$ cd Ical2html
$ autoreconf -i
$ ./configure
$ make
If "configure" complains about "libical", look for libical-dev or
libical in the software repository for your operating system, or
download it from http://softwarestudio.org/libical/ or
http://sourceforge.net/projects/freeassociation/. Ical2html was
developed with libical versions 0.43 and 1.0.
Debian 5.0 (Lenny)
The version of libical in Debian Lenny is 0.31 and doesn't work
with ical2html. But the libical from Debian Backports
(http://www.backports.org/) does.
Max OS X
If you installed libical from MacPorts (http://www.macports.org/),
you'll need to tell configure where the header files and libraries
are. Run configure as follows (all on one line):
CFLAGS="-I/opt/local/include -I/opt/local/include/libical
-L/opt/local/lib" ./configure
If you managed to compile, but the program fails to run with an error
about "libical.so" not found, try to set the variable
"LD_LIBRARY_PATH" before running ical2html, e.g.:
$ LD_LIBRARY_PATH=/path/to/lib ical2html
2) Updating to the latest CVS version
-------------------------------------
If you have a version of ical2html already and want to update it to
the latest version:
$ cd Ical2html
$ cvs -d :pserver:anonymous@dev.w3.org:/sources/public update
If you are asked for a password, answer "anonymous"
3) [Explain ical2html options]
------------------------------
4) [Explain that the created HTML file links to "calendar.css"]
---------------------------------------------------------------
[An example "calendar.css" in included]
[Write manual...]
Created: 28 Sep 2002
Modified: $Date: 2015/08/14 23:43:00 $