Skip to content

Commit

Permalink
autotools
Browse files Browse the repository at this point in the history
git-svn-id: https://projectname.googlecode.com/svn/trunk@21 c416075f-80b4-e980-4839-00ea3ed24e77
  • Loading branch information
[email protected] committed May 30, 2011
1 parent df3bfd0 commit b81461a
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 5 deletions.
30 changes: 30 additions & 0 deletions trunk/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
bin_PROGRAMS = pn

pn_SOURCES = \
src/logger.cpp \
src/file_types/img.cpp \
src/file_types/base.cpp \
src/file_types/text.cpp \
src/program_options.cpp \
src/magic_file.cpp \
src/filesystem.cpp \
src/default_main.cpp \
src/main.cpp \
src/file_typer.cpp \
src/clusterization.cpp \
src/logger.h \
src/file_types/img.h \
src/file_types/text.h \
src/file_types/base.h \
src/kleisli.h \
src/type_list.h \
src/program_options.h \
src/magic_file.h \
src/comparator.h \
src/file_types.h \
src/clusterization.h \
src/file_typer.h \
src/filesystem.h

pn_CXXFLAGS = -I/usr/include/ImageMagick
pn_LDADD = -lMagick++ -lboost_program_options -lboost_filesystem -lboost_system
File renamed without changes.
7 changes: 7 additions & 0 deletions trunk/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
aclocal
autoconf
autoheader
touch NEWS README AUTHORS ChangeLog
automake --add-missing
./configure
make
20 changes: 20 additions & 0 deletions trunk/configure.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
AC_PREREQ([2.68])
AC_INIT([pn], [0.1], [[email protected]])

AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADER(src/config.h)

AM_INIT_AUTOMAKE([1.9 foreign])

AC_PROG_CXX

AC_CHECK_HEADERS([magic.h])
AC_CHECK_LIB(magic, magic_file)

AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T

AC_CONFIG_FILES([Makefile])
AC_OUTPUT
12 changes: 12 additions & 0 deletions trunk/file.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[text]
formats = text/plain, .txt
threshold = 2
words_count = 10

[image]
formats = image/jpg, .jpg, image/png, .png
bucket_count = 4
threshold = 0.005
precise = no
max_diff = 200000
img_size = 128
2 changes: 0 additions & 2 deletions trunk/src/file_types/base.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include <boost/filesystem/fstream.hpp>
#include <boost/make_shared.hpp>
#include <cstring>
#include <cassert>

#include "base.h"
#include "../kleisli.h"
Expand Down
2 changes: 0 additions & 2 deletions trunk/src/file_types/text.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include <boost/filesystem/fstream.hpp>
#include <boost/make_shared.hpp>
#include <string.h>
#include <ctype.h>
#include <map>

#include "text.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/src/file_types/text.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _FILE_TYPE_TEXT_H_
#define _FILE_TYPE_TEXT_H_

#include <stdint.h>
#include <vector>

#include "base.h"
Expand Down
Empty file removed trunk/todo.txt
Empty file.

0 comments on commit b81461a

Please sign in to comment.