--- wmclockmon-0.8.0.orig/src/main.c +++ wmclockmon-0.8.0/src/main.c @@ -251,14 +251,12 @@ static void print_help(char *prog); static void time_update(); static Bool raise_alarm(); -static Bool fexist(const char *filename); static Bool filestat(const char *filename, time_t *time, int mode); static int my_system(char *cmd, char *opt); void *xmalloc(size_t size); char *xstrdup(const char *string); static void alrm_add(Alarm **list, const char *value); static void free_alrm(Alarm **list); -static int nb_alrm(Alarm *list); static Bool alarms_on(Alarm *list); static void switch_alarms(Alarm *list); static Bool getbool(char *value); @@ -1326,17 +1324,6 @@ return False; } - -static Bool fexist(const char *filename) { - FILE *file; - - if ((file = fopen(filename, "r")) == NULL) return False; - fclose(file); - - return True; -} - - static Bool filestat(const char *filename, time_t *time, int mode) { struct stat s; time_t t = *time; @@ -1471,17 +1458,6 @@ } -static int nb_alrm(Alarm *list) { - Alarm *alrm = list; - int n = 0; - while (alrm) { - n++; - alrm = alrm->next; - } - return n; -} - - static Bool alarms_on(Alarm *list) { Alarm *alrm = list; --- wmclockmon-0.8.0.orig/debian/changelog +++ wmclockmon-0.8.0/debian/changelog @@ -1,3 +1,51 @@ +wmclockmon (0.8.0-1) unstable; urgency=low + + * New upstream release. + * debian/control: I'm a DD. + + -- Marc 'HE' Brockschmidt Thu, 3 Jun 2004 20:24:21 +0200 + +wmclockmon (0.7.2-1) unstable; urgency=low + + * New upstream release. + + -- Marc 'HE' Brockschmidt Tue, 9 Mar 2004 17:28:39 +0100 + +wmclockmon (0.7.1-1) unstable; urgency=low + + * New upstream release. + * debian/control: New xlib packaging, change build-depends. + + -- Marc 'HE' Brockschmidt Mon, 1 Mar 2004 00:23:58 +0100 + +wmclockmon (0.7.0-1) unstable; urgency=low + + * New upstream release: Now also provides a binary clock (this seems to be + a needed feature atm) + * debian/watch: Added, upstream releases fast :) + * debian/menu: Added quotes to make new lintian happy. + + -- Marc 'HE' Brockschmidt Thu, 26 Feb 2004 13:51:24 +0100 + +wmclockmon (0.6.2-1) unstable; urgency=low + + * Yet another new upstream release. + + -- Marc Brockschmidt Sat, 14 Feb 2004 12:20:44 +0100 + +wmclockmon (0.6.1-1) unstable; urgency=low + + * New upstream release. + * debian/rules: Some small changes to get the nostrip thing working. + + -- Marc Brockschmidt Wed, 11 Feb 2004 20:28:13 +0100 + +wmclockmon (0.5.2-1) unstable; urgency=low + + * New upstream release. + + -- Marc Brockschmidt Sun, 7 Dec 2003 16:09:49 +0100 + wmclockmon (0.5.0-1) unstable; urgency=low * New upstream release: --- wmclockmon-0.8.0.orig/debian/docs +++ wmclockmon-0.8.0/debian/docs @@ -1 +1 @@ -doc/sample.wmclockmonrc + --- wmclockmon-0.8.0.orig/debian/control +++ wmclockmon-0.8.0/debian/control @@ -1,13 +1,14 @@ Source: wmclockmon Section: x11 Priority: optional -Maintainer: Marc Brockschmidt -Build-Depends: libglib1.2-dev, libgtk1.2-dev, xlibs-dev (>> 4.1.0), debhelper (>= 3.0.0) -Standards-Version: 3.6.0 +Maintainer: Marc 'HE' Brockschmidt +Build-Depends: libglib1.2-dev, libgtk1.2-dev, libx11-dev | xlibs-dev (>> 4.1.0), libxext-dev | xlibs-dev (>> 4.1.0), libxi-dev | xlibs-dev (>> 4.1.0), libxpm-dev | xlibs-dev (>> 4.1.0), debhelper (>= 4) +Standards-Version: 3.6.1 Package: wmclockmon Architecture: any Depends: ${shlibs:Depends} -Description: Displays a clock in 12/24h mode with alarm mode and 3 different LCD styles +Description: Displays a clock in 12/24h mode with alarm mode wmclockmon displays a clock like wmtime, but with an alarm timer and - different styles. + different styles (14 + user customized ones). There's also a "binary + clock" style available. --- wmclockmon-0.8.0.orig/debian/rules +++ wmclockmon-0.8.0/debian/rules @@ -1,5 +1,4 @@ #!/usr/bin/make -f -export DH_COMPAT=3 TMP=$(CURDIR)/debian/wmclockmon @@ -13,7 +12,7 @@ configure: configure-stamp configure-stamp: dh_testdir - CFLAGS="$(CFLAGS)" ./configure --prefix=$(TMP)/usr --mandir=$(TMP)/usr/share/man + CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=/usr/share/man touch configure-stamp build: configure build-stamp @@ -26,8 +25,8 @@ dh_testdir dh_testroot rm -f build-stamp install-stamp configure-stamp - -$(MAKE) clean - rm -f config.h config.log config.status stamp-h Makefile src/Makefile doc/Makefile wmclockmon-config/Makefile + -$(MAKE) maintainer-clean + rm -f config.h config.log config.status stamp-h Makefile src/Makefile doc/Makefile wmclockmon-config/Makefile wmclockmon-cal/Makefile dh_clean install: install-stamp @@ -35,7 +34,7 @@ dh_testdir dh_testroot dh_clean -k - $(MAKE) install-strip + $(MAKE) install DESTDIR=$(TMP) touch install-stamp # Build architecture-independent files here. @@ -51,7 +50,9 @@ dh_installmenu dh_installmanpages dh_installchangelogs ChangeLog +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) dh_strip +endif dh_compress dh_fixperms dh_installdeb --- wmclockmon-0.8.0.orig/debian/menu +++ wmclockmon-0.8.0/debian/menu @@ -1,6 +1,6 @@ ?package(wmclockmon):\ - needs=X11\ - section=Apps/Tools\ + needs="X11"\ + section="Apps/Tools"\ hints="Clocks"\ title="wmclockmon"\ command="/usr/bin/wmclockmon" --- wmclockmon-0.8.0.orig/debian/examples +++ wmclockmon-0.8.0/debian/examples @@ -0,0 +1,2 @@ +doc/sample1.wmclockmonrc +doc/sample2.wmclockmonrc --- wmclockmon-0.8.0.orig/debian/compat +++ wmclockmon-0.8.0/debian/compat @@ -0,0 +1 @@ +4 --- wmclockmon-0.8.0.orig/debian/watch +++ wmclockmon-0.8.0/debian/watch @@ -0,0 +1,3 @@ +version=2 + +http://tnemeth.free.fr/projets/programmes/wmclockmon-(.*)\.tar\.gz --- wmclockmon-0.8.0.orig/wmclockmon-cal/mainwindow.c +++ wmclockmon-0.8.0/wmclockmon-cal/mainwindow.c @@ -167,7 +167,7 @@ static void editor_fill(int which) { - char *filename, *dstr; + char *dstr; GtkWidget *label; switch (which) {