Changes in / [4adc69b:13a39ae8]


Ignore:
Files:
2 added
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r3624a2c r353719a  
    1212
    1313check_PROGRAMS = tester.bin
    14 dist_check_DATA = t
    15 dist_check_SCRIPTS = runtests.sh
    16 
    17 bin_SCRIPTS = barnowl
    18 check_SCRIPTS = tester
    19 
    20 barnowl tester: %: barnowl-wrapper.in %.bin Makefile
    21         sed \
    22             -e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
    23             -e 's,[@]abs_builddir[@],$(abs_builddir),g' \
    24             $< > $@
    25         chmod +x $@
    2614
    2715barnowl_bin_SOURCES = $(BASE_SRCS) \
    28      owl.h owl_perl.h \
    29      owl.c
    30 nodist_barnowl_bin_SOURCES = $(GEN_C) $(GEN_H)
     16     owl.h owl_perl.h config.h \
     17     owl.c \
     18    $(GEN_C) $(GEN_H)
    3119
    32 dist_man_MANS = doc/barnowl.1
    33 dist_doc_DATA = doc/intro.txt doc/advanced.txt
     20man_MANS = doc/barnowl.1
     21doc_DATA = doc/intro.txt doc/advanced.txt
    3422
    3523barnowl_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
    3624
    3725tester_bin_SOURCES = $(BASE_SRCS) \
    38      owl.h owl_perl.h \
     26     owl.h owl_perl.h config.h \
     27     $(GEN_C) $(GEN_H) \
    3928     tester.c
    40 nodist_tester_bin_SOURCES = $(GEN_C) $(GEN_H)
    4129
    4230tester_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
     
    4432TESTS=runtests.sh
    4533
    46 AM_CPPFLAGS = \
     34AM_CPPFLAGS = -I$(top_srcdir)/ \
    4735           -I$(top_srcdir)/libfaim/ \
    4836           -DDATADIR='"$(pkgdatadir)"' \
     
    6048     mainpanel.c msgwin.c sepbar.c editcontext.c signal.c closures.c
    6149
    62 NORMAL_SRCS = filterproc.c filterproc.h window.c window.h windowcb.c
     50NORMAL_SRCS = filterproc.c window.c windowcb.c
    6351
    6452BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS)
    6553
    6654GEN_C = varstubs.c perlglue.c gmarshal_funcs.c
    67 GEN_H = owl_prototypes.h owl_prototypes.h.new gmarshal_funcs.h
     55GEN_H = owl_prototypes.h gmarshal_funcs.h
    6856
    6957BUILT_SOURCES = $(GEN_C) $(GEN_H)
     
    7866proto: owl_prototypes.h
    7967
    80 perlglue.c: perlglue.xs typemap
    81         $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes $< > $@
     68perlglue.c: perlglue.xs $(TYPEMAP)
     69        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
    8270
    8371varstubs.c: stubgen.pl variable.c
     
    9684        $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
    9785
     86install-data-local:
     87        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
     88        (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
     89
    9890do_transform = $(shell echo '$(1)' | sed '$(transform)')
    9991install-exec-hook:
     
    10193              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
    10294
    103 uninstall-local:
    104         rm -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
    105 
    106 CLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS) $(check_SCRIPTS)
    107 EXTRA_DIST = \
    108     autogen.sh \
    109     barnowl-wrapper.in \
    110     codelist.pl \
    111     doc \
    112     examples \
    113     marshal_types \
    114     perlglue.xs \
    115     scripts \
    116     stubgen.pl \
    117     typemap
    118 
    11995SUBDIRS = compat libfaim perl
  • compat/Makefile.am

    rb80bae0 r12a6616  
    11noinst_LIBRARIES = libcompat.a
    22
    3 libcompat_a_SOURCES = compat.h
     3libcompat_a_SOURCES =
    44libcompat_a_LIBADD = $(LIBOBJS)
  • compat/compat.h

    r6249a88f r4dde585  
    22#define INC_BARNOWL_COMPAT_COMPAT_H
    33
    4 #include <config.h>
     4#include "../config.h"
    55
    66#include <stddef.h>
  • configure.ac

    reb5e8fc r06e04a9  
    100100dnl Find the location of perl XSUBPP
    101101AC_MSG_CHECKING(for the perl xsubpp precompiler)
    102 XSUBPPDIR="`cd "$srcdir" && perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;' | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
     102XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
    103103if test -n "${XSUBPPDIR}"; then
    104104   AC_MSG_RESULT(${XSUBPPDIR})
  • filterproc.c

    r7155955 r3496369  
    1 #include "filterproc.h"
     1#include "owl.h"
    22#include <sys/wait.h>
    3 #include <fcntl.h>
    4 #include <glib.h>
    53#include <poll.h>
    6 #include <string.h>
    7 #include <unistd.h>
    84
    95/* Even in case of error, send_receive is responsible for closing wfd
  • libfaim/Makefile.am

    rb80bae0 r215c119  
    1313libfaim_a_CPPFLAGS = -DAIM_BUILDDATE=\"x\" -DAIM_BUILDTIME=\"x\" \
    1414                     -I${top_srcdir}/libfaim
    15 
    16 EXTRA_DIST = oscar.c
  • owl.h

    r6249a88f rbbc31e4  
    1010#define INC_BARNOWL_OWL_H
    1111
    12 #include <config.h>
     12#include "config.h"
    1313
    1414#include "compat/compat.h"
     
    608608extern owl_global g;
    609609
    610 #include <owl_prototypes.h>
     610#include "owl_prototypes.h"
    611611
    612612/* These were missing from the Zephyr includes before Zephyr 3. */
  • perl/Makefile.am

    ra870319 r10557e6  
    11SUBDIRS = modules
    2 nobase_dist_pkgdata_DATA = \
    3         lib/BarnOwl.pm \
    4         lib/BarnOwl/Complete/AIM.pm \
    5         lib/BarnOwl/Complete/Client.pm \
    6         lib/BarnOwl/Complete/Filter.pm \
    7         lib/BarnOwl/Complete/Zephyr.pm \
    8         lib/BarnOwl/Completion.pm \
    9         lib/BarnOwl/Completion/Context.pm \
    10         lib/BarnOwl/Completion/Util.pm \
    11         lib/BarnOwl/Editwin.pm \
    12         lib/BarnOwl/Help.pm \
    13         lib/BarnOwl/Hook.pm \
    14         lib/BarnOwl/Hooks.pm \
    15         lib/BarnOwl/MainLoopCompatHook.pm \
    16         lib/BarnOwl/Message.pm \
    17         lib/BarnOwl/Message/AIM.pm \
    18         lib/BarnOwl/Message/Admin.pm \
    19         lib/BarnOwl/Message/Generic.pm \
    20         lib/BarnOwl/Message/Loopback.pm \
    21         lib/BarnOwl/Message/Zephyr.pm \
    22         lib/BarnOwl/ModuleLoader.pm \
    23         lib/BarnOwl/Parse.pm \
    24         lib/BarnOwl/Style.pm \
    25         lib/BarnOwl/Style/Basic.pm \
    26         lib/BarnOwl/Style/Default.pm \
    27         lib/BarnOwl/Style/Legacy.pm \
    28         lib/BarnOwl/Style/OneLine.pm \
    29         lib/BarnOwl/Timer.pm \
    30         lib/BarnOwl/Zephyr.pm \
    31         lib/Module/Install/BarnOwl.pm
  • perl/modules/Makefile.am

    reb5e8fc r35c5bd8  
    22
    33EXTRA_DIST = $(MODULES:=/Makefile.PL) $(MODULES:=/inc) $(MODULES:=/lib)
    4 EXTRA_DIST += \
    5     Facebook/README \
    6     Twitter/README \
    7     Twitter/twitter.example
    84
    95all-local: $(MODULES)
     
    139MODULES_MAKEFILE = $(MODULES:=/Makefile)
    1410$(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
    15         [ $(srcdir) = . ] || cp -srf --no-preserve=mode -- $(abs_srcdir)/$*/. $*
    1611        $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
    1712
     
    1914clean-local: $(MODULES_CLEAN)
    2015$(MODULES_CLEAN): clean_%:
    21         if [ $(srcdir) = . ]; then \
    22             (cd $* && { test ! -f Makefile || $(MAKE) realclean; }) && \
    23             rm -f $*/$*.par; \
    24         else \
    25             rm -rf $*; \
    26         fi
     16        (cd $* && (test ! -f Makefile || $(MAKE) clean))
    2717
    2818MODULES_INSTALL = $(MODULES:%=module_install_%)
     
    3323        ${INSTALL_DATA} $*/$*.par ${DESTDIR}${pkgdatadir}/modules/$*.par
    3424
    35 uninstall-local:
    36         rm -f $(MODULES:%=${DESTDIR}${pkgdatadir}/modules/%.par)
    37 
    3825.PHONY: $(MODULES) $(MODULES_CLEAN) $(MODULES_INSTALL)
  • runtests.sh

    r5db8835 rf6ab6ee  
    11#!/bin/sh
    2 exec env HARNESS_PERL=./tester prove --failures "${srcdir:=$(dirname "$0")}/t/"
     2exec env HARNESS_PERL=./tester prove --failures t/
  • t/00-core-tests.t

    r5db8835 r95414bf  
    11#!/usr/bin/env perl
    2 system("./tester", "--builtin");
     2use File::Basename;
     3system(dirname($0) . "/../tester", "--builtin");
  • zcrypt.c

    r6249a88f rd72ba1e  
    1717#include <ctype.h>
    1818
    19 #include <config.h>
     19#include "config.h"
    2020
    2121#ifdef HAVE_KERBEROS_IV
Note: See TracChangeset for help on using the changeset viewer.