Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adding app.in
  • Loading branch information
Jacob Vorreuter committed Jun 5, 2009
1 parent b6b17c3 commit 57ca78b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 34 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -2,10 +2,13 @@ LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
VERSION=0.3.0
PKGNAME=erlang_protobuffs

all:
all: app
mkdir -p ebin/
(cd src;$(MAKE))

app:
sh ebin/$(PKGNAME).app.in $(VERSION)

test: all
prove t/*.t

Expand All @@ -15,7 +18,7 @@ test-eqc: all
clean:
(cd src;$(MAKE) clean)
(cd t; $(MAKE) clean)
rm -rf erl_crash.dump *.beam *.hrl
rm -rf erl_crash.dump *.beam *.hrl ebin/*.app

package: clean
@mkdir $(PKGNAME)-$(VERSION)/ && cp -rf ebin Makefile README.markdown scripts src support t $(PKGNAME)-$(VERSION)
Expand Down
32 changes: 0 additions & 32 deletions ebin/erlang_protobuffs.app

This file was deleted.

16 changes: 16 additions & 0 deletions ebin/erlang_protobuffs.app.in
@@ -0,0 +1,16 @@
#!/bin/bash

VERSION=${1}
MODULES=`ls -1 src/*.erl | awk -F[/.] '{ print "\t\t" $2 }' | sed '$q;s/$/,/g'`

cat > ebin/erlang_protobuffs.app << EOF
{application, erlang_protobuffs, [
{description, "Google protobuffs implementation for Erlang."},
{vsn, "${VERSION}"},
{modules, [
${MODULES}
]},
{registered, []},
{applications, [kernel, stdlib, sasl, crypto, log_roller, stateless_server]}
]}.
EOF

0 comments on commit 57ca78b

Please sign in to comment.