Permalink
Browse files

Removed old build system

  • Loading branch information...
1 parent cc7a964 commit 4a37e5f43c9a8cde1e76b69ee6311d4dcfaaccf6 @freke freke committed Oct 30, 2010
View
@@ -1,3 +0,0 @@
-# put whatever (auto)make commands here, they will be included from Makefile.am
-
-EXTRA_DIST += README.markdown
File renamed without changes.
View
@@ -1,17 +0,0 @@
-#! /bin/sh
-
-if test -d fw/bin
- then
- PATH="`pwd`/fw/bin:$PATH"
- export PATH
- fi
-
-fwb=`which fw-bootstrap`
-
-if test -z "$fwb"
- then
- echo "bootstrap: fatal: fw-bootstrap not installed or not in PATH" 1>&2
- exit 1
- fi
-
-"$fwb" --fw_version "0.1.31" --name erlang-protobuffs --revision none --template erlang "$@"
View
@@ -1,2 +0,0 @@
-dnl -- include additional autoconf commands here
-dnl -- do not include AC_OUTPUT, this is called for you
View
@@ -1 +0,0 @@
-# put whatever (auto)make commands here, they will be included from Makefile.am
View
No changes.
@@ -1 +0,0 @@
-# put whatever (auto)make commands here, they will be included from Makefile.am
View
@@ -1,87 +0,0 @@
-# The FW_PACKAGE_MAINTAINER field is populated with the
-# environment variable FW_PACKAGE_DEFAULT_MAINTAINER if non-empty
-
-FW_PACKAGE_NAME="erlangprotobuffs"
-FW_PACKAGE_VERSION="0.0.1"
-FW_PACKAGE_MAINTAINER="cliff <cliff@cliffs-macbook-pro-15.local>"
-FW_PACKAGE_SHORT_DESCRIPTION="Google protobuffs implementation for Erlang."
-FW_PACKAGE_DESCRIPTION=`cat README.markdown`
-FW_PACKAGE_ARCHITECTURE_DEPENDENT="1"
-
-# Dependency information. The native syntax corresponds to Debian,
-# http://www.debian.org/doc/debian-policy/ch-relationships.html
-# Section 7.1 "Syntax of Relationship Fields"
-#
-# For other packaging systems, the syntax is translated for you.
-
-FW_PACKAGE_DEPENDS=""
-FW_PACKAGE_CONFLICTS=""
-FW_PACKAGE_PROVIDES=""
-FW_PACKAGE_REPLACES=""
-FW_PACKAGE_SUGGESTS=""
-
-FW_PACKAGE_BUILD_DEPENDS="etap"
-FW_PACKAGE_BUILD_CONFLICTS=""
-
-# dupload is used for submitting debian packages to a package archive
-# The FW_DUPLOAD_ARGS field is populated with the environment variable
-# FW_DEFAULT_DUPLOAD_ARGS if non-empty at init time
-
-FW_DUPLOAD_ARGS=${FW_DUPLOAD_ARGS-"-q"}
-
-# scp+createrepo is used for submitting rpm packages to a package archive
-# The FW_RPM_REPO_USER, FW_RPM_REPO_HOST, FW_RPM_REPO_BASEDIR,
-# and FW_RPM_POSTCREATEREPO_COMMANDS variables are populated with
-# FW_RPM_REPO_USER_DEFAULT, FW_RPM_REPO_HOST_DEFAULT,
-# FW_RPM_REPO_BASEDIR_DEFAULT, and FW_RPM_POSTCREATEREPO_COMMANDS_DEFAULT
-# respectively if non-empty at init time
-
-FW_RPM_REPO_USER=${FW_RPM_REPO_USER-"`whoami`"}
-FW_RPM_REPO_HOST=${FW_RPM_REPO_HOST-"localhost"}
-FW_RPM_REPO_BASEDIR=${FW_RPM_REPO_BASEDIR-""}
-FW_RPM_CREATEREPO_ARGS=${FW_RPM_CREATEREPO_ARGS-"-q --database"}
-
-# this variable controls whether createrepo is run incrementally (--update).
-# possible settings are yes (always do it), no (never do it), and
-# auto (do it if the repository has been previously initialized)
-FW_RPM_CREATEREPO_INCREMENTAL=${FW_RPM_CREATEREPO_INCREMENTAL-"auto"}
-
-# these commands will be run after a successful createrepo run
-FW_RPM_POSTCREATEREPO_COMMANDS=${FW_RPM_POSTCREATEREPO_COMMANDS-"true"}
-# here's a suggestion:
-# FW_RPM_POSTCREATEREPO_COMMANDS="gpg --detach-sign --armor repodata/repomd.xml"
-
-# uncomment and set manually if autodetection of modules is incorrect.
-# should be an erlang expression which evaluates to a list.
-# FW_ERL_APP_MODULES="[]"
-
-# uncomment and set manually if autodetection of registered processes is incorrect
-# should be an erlang expression which evaluates to a list.
-# FW_ERL_APP_REGISTERED="[]"
-
-# uncomment and set manually if autodetection of start module is incorrect
-# should be an erlang expression which evaluates to an atom.
-# FW_ERL_APP_START_MODULE=""
-
-# uncomment to define start args to the start module. should be an erlang
-# expression which evaluates to a list. this only has an effect if
-# FW_ERL_APP_START_MODULE is set manually.
-# FW_ERL_APP_START_ARGS="[]"
-
-# uncomment if the module line being generated is incorrect and you want
-# to override it.
-# FW_ERL_APP_MOD_LINE="{ mod, { $FW_ERL_APP_START_MODULE, $FW_ERL_APP_START_ARGS } }"
-
-# uncomment to define the application environment variables. should be an
-# erlang expression which evaluates to a list.
-# FW_ERL_APP_ENVIRONMENT="[]"
-
-# uncomment to indicate additional OTP applications (besides kernel and stdlib)
-# that this application depends upon. should be an erlang expression which
-# evaluates to a list.
-# FW_ERL_PREREQ_APPLICATIONS_EXTRA="[]"
-
-# uncomment to add arbitrary extra content to the app file, e.g., an
-# included application directive. should be an erlang expression which
-# evaluates to a proplist (list of key-value tuple pairs).
-# FW_ERL_APP_EXTRA="[]"
View
@@ -1,9 +0,0 @@
-#! /bin/sh
-
-#---------------------------------------------------------------------
-# post-install
-#
-# Executed after the package is installed.
-#---------------------------------------------------------------------
-
-exit 0
View
@@ -1,9 +0,0 @@
-#! /bin/sh
-
-#---------------------------------------------------------------------
-# post-remove
-#
-# Executed after the package is removed.
-#---------------------------------------------------------------------
-
-exit 0
View
@@ -1,9 +0,0 @@
-#! /bin/sh
-
-#---------------------------------------------------------------------
-# pre-install
-#
-# Executed before the package is installed.
-#---------------------------------------------------------------------
-
-exit 0
View
@@ -1,9 +0,0 @@
-#! /bin/sh
-
-#---------------------------------------------------------------------
-# pre-remove
-#
-# Executed before the package is removed.
-#---------------------------------------------------------------------
-
-exit 0
View
@@ -1,10 +0,0 @@
-#! /bin/sh
-
-#---------------------------------------------------------------------
-# start
-#
-# Executed when the package (service) is started up.
-# Not supported by all package formats.
-#---------------------------------------------------------------------
-
-exit 0
View
@@ -1,10 +0,0 @@
-#! /bin/sh
-
-#---------------------------------------------------------------------
-# start
-#
-# Executed when the package (service) is shut down.
-# Not supported by all package formats.
-#---------------------------------------------------------------------
-
-exit 0
View
@@ -1,73 +0,0 @@
-#!/usr/bin/env escript
-%% -*- erlang -*-
-%%! -sasl errlog_type error -boot start_sasl -noshell
-
-%% ====================================================
-%% Generate proto message from mysql table definition
-%% $> escript mysql.escript host port user pwd db table
-%% ====================================================
-
-main([Host, Port0, User, Password, Database, Table]) ->
- ok = crypto:start(),
- Greeting_Fun =
- fun(_M,_L,_E,_F) ->
- %{Format,Args} = F(),
- %io:format("[~p:~b] ~p~n", [M,L,E]),
- %io:format(Format ++ "~n", Args),
- ok
- end,
-
- Port = list_to_integer(Port0),
- {ok, Pid} = mysql_conn:start(Host, Port, User, Password, Database, Greeting_Fun, undefined, undefined),
-
- [C|Rest] = Table,
- MessageName = [string:to_upper(C)|Rest],
- case mysql_conn:fetch(Pid, list_to_binary(lists:flatten(io_lib:format("DESC ~s", [Table]))), self()) of
- {data, MySQLRes} ->
- Rows = mysql:get_result_rows(MySQLRes),
- io:format("message ~s {~n", [MessageName]),
- print_row(Rows, 1),
- io:format("}~n");
- [] ->
- [];
- Err ->
- error_logger:error_msg("~p~n", [Err])
- end,
-
- ok;
-
-main(_Args) ->
- io:format("usage: escript mysql.escript host port user password database table~n"),
- io:format("args: ~p~n", [_Args]).
-
-print_row([], _) -> ok;
-print_row([[Field, Type, Null, _Key, Default, _Extra]|Tail], Number) ->
- Null1 = null(Null),
- Type1 = type(binary_to_list(Type)),
- Default1 = default(Type1, Default),
- io:format(" ~s ~s ~s = ~w~s;~n", [Null1, Type1, Field, Number, Default1]),
-
- print_row(Tail, Number+1).
-
-null(<<"YES">>) -> "optional";
-null(<<"NO">>) -> "required".
-
-type("tinyint" ++ _) -> "int32";
-type("bigint" ++ _) -> "int64";
-type("serial" ++ _) -> "int64";
-type("mediumint" ++ _) -> "int32";
-type("int" ++ _) -> "int32";
-type("datetime" ++ _) -> "int32";
-type("float" ++ _) -> "float";
-type("double" ++ _) -> "double";
-type("decimal" ++ _) -> "double";
-type("varchar" ++ _) -> "string";
-type("char" ++ _) -> "string";
-type("text" ++ _) -> "string";
-type(Type) -> Type.
-
-
-default(_, <<"NULL">>) -> "";
-default(_, undefined) -> "";
-default("int" ++ _, Default) -> lists:flatten(io_lib:format(" [default = ~w]", [list_to_integer(binary_to_list(Default))]));
-default(_, Default) -> lists:flatten(io_lib:format(" [default = ~p]", [binary_to_list(Default)])).
View
@@ -1,18 +0,0 @@
-# put whatever (auto)make commands here, they will be included from Makefile.am
-bin_SCRIPTS = \
- protoc-erl
-
-dist_erlappsrc_DATA = \
- $(wildcard *.erl)
-
-dist_erlappinclude_DATA = \
- $(wildcard *.hrl)
-
-erlappebin_SCRIPTS = \
- @FW_PACKAGE_NAME@.app \
- $(patsubst %.erl, %.beam, $(dist_erlappsrc_DATA))
-
-EXTRA_DIST += $(bin_SCRIPTS)
-
-# check_DATA = \
-# .dialyzer_ok
View
@@ -1,43 +0,0 @@
-## -*- makefile -*-
-
-ERL := erl
-ERLC := $(ERL)c
-
-INCLUDE_DIRS := ../include $(wildcard ../deps/*/include)
-EBIN_DIRS := $(wildcard ../deps/*/ebin)
-ERLC_FLAGS := +debug_info -W $(INCLUDE_DIRS:../%=-I ../%) $(EBIN_DIRS:%=-pa %)
-
-ifdef debug
- ERLC_FLAGS += -Ddebug
-endif
-
-EBIN_DIR := ../ebin
-DOC_DIR := ../doc
-EMULATOR := beam
-
-ERL_TEMPLATE := $(wildcard *.et)
-ERL_SOURCES := $(wildcard *.erl)
-ERL_HEADERS := $(wildcard *.hrl) $(wildcard ../include/*.hrl)
-ERL_OBJECTS := $(ERL_SOURCES:%.erl=$(EBIN_DIR)/%.beam)
-ERL_TEMPLATES := $(ERL_TEMPLATE:%.et=$(EBIN_DIR)/%.beam)
-ERL_OBJECTS_LOCAL := $(ERL_SOURCES:%.erl=./%.$(EMULATOR))
-APP_FILES := $(wildcard *.app)
-EBIN_FILES = $(ERL_OBJECTS) $(APP_FILES:%.app=../ebin/%.app) $(ERL_TEMPLATES)
-MODULES = $(ERL_SOURCES:%.erl=%)
-
-../ebin/%.app: %.app
- cp $< $@
-
-$(EBIN_DIR)/%.$(EMULATOR): %.erl
- $(ERLC) $(ERLC_FLAGS) -o $(EBIN_DIR) $<
-
-$(EBIN_DIR)/%.$(EMULATOR): %.et
- $(ERL) -noshell -pa ../../elib/erltl/ebin/ -eval "erltl:compile(atom_to_list('$<'), [{outdir, \"../ebin\"}, report_errors, report_warnings, nowarn_unused_vars])." -s init stop
-
-./%.$(EMULATOR): %.erl
- $(ERLC) $(ERLC_FLAGS) -o . $<
-
-$(DOC_DIR)/%.html: %.erl
- $(ERL) -noshell -run edoc file $< -run init stop
- mv *.html $(DOC_DIR)
-
View
@@ -1,2 +0,0 @@
-TESTS = \
- runtests.sh
View
@@ -1,15 +0,0 @@
-#!/usr/bin/env escript
-%% -*- erlang -*-
-%%! -pa ../src -sasl errlog_type error -boot start_sasl -noshell
-
-main(_) ->
- etap:plan(8),
- etap_can:loaded_ok(protobuffs, "module 'protobuffs' loaded"),
- etap_can:can_ok(protobuffs, encode),
- etap_can:can_ok(protobuffs, encode, 3),
- etap_can:can_ok(protobuffs, decode),
- etap_can:can_ok(protobuffs, decode, 2),
- etap_can:loaded_ok(protobuffs_compile, "module 'protobuffs_compile' loaded"),
- etap_can:can_ok(protobuffs_compile, scan_file),
- etap_can:can_ok(protobuffs_compile, scan_file, 1),
- etap:end_tests().
View
@@ -1,10 +0,0 @@
-#!/usr/bin/env escript
-%% -*- erlang -*-
-%%! -pa ../src -sasl errlog_type error -boot start_sasl -noshell
-
-main(_) ->
- etap:plan(3),
- etap:is(protobuffs:encode(1, 1, uint32), <<8,1>>, "1, 1, unit32"),
- etap:is(protobuffs:encode(2, 1, uint32), <<16,1>>, "2, 1, unit32"),
- etap:is(protobuffs:encode(3, 1, uint32), <<24,1>>, "3, 1, unit32"),
- etap:end_tests().
View
@@ -1,44 +0,0 @@
-#!/usr/bin/env escript
-%% -*- erlang -*-
-%%! -pa ../src -noshell
-
-main(_) ->
- etap:plan(20),
- Tests = [
- {8, uint32},
- {16, uint32},
- {24, uint32},
- {1, fixed32},
- {1, enum},
- {200, enum},
- {9933, int64},
- {-391, sint64},
- {5, fixed32},
- {-5, sfixed32},
- {30, fixed64},
- {500, sfixed64},
- {"Whirlwind tickles.", string, <<"Whirlwind tickles.">>},
- {"", string, <<>>},
- {<<"It's a secret to everyone.">>, string},
- {<<4,8,15,16,23,42>>, bytes},
- {3.141592025756836, float},
- {1.00000000000000022204460492503130808472633361816406, double},
- {false, bool},
- {true, bool}
- ],
- lists:foreach(
- fun(Test) ->
- {Value, Type, Expected} = case Test of
- {A, B} -> {A, B, A};
- _ -> Test
- end,
- Decode = protobuffs:decode(iolist_to_binary(protobuffs:encode(1, Value, Type)), Type),
- etap:is(
- protobuffs:decode(iolist_to_binary(protobuffs:encode(1, Value, Type)), Type),
- {{1, Expected}, <<>>},
- "encode/decode test -- random " ++ atom_to_list(Type)
- )
- end,
- Tests
- ),
- etap:end_tests().
Oops, something went wrong.

0 comments on commit 4a37e5f

Please sign in to comment.