gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-backoffice] 02/31: auto{make,conf}


From: gnunet
Subject: [GNUnet-SVN] [taler-backoffice] 02/31: auto{make,conf}
Date: Thu, 04 Jan 2018 18:09:25 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository backoffice.

commit 089559c525c605552ef283c7b41e2d5fc41102d8
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Nov 24 17:27:02 2017 +0100

    auto{make,conf}
---
 Makefile.in  | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 117 insertions(+)

diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..8504506
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,52 @@
+INSTALL = install
+INSTALL_PROGRAM = $(INSTALL)
+INSTALL_DATA = $(INSTALL) -m 644
+prefix = @prefix@
+srcdir = @srcdir@
+
+script_templates = taler-merchant-blog frontend-blog.wsgi
+templates = Makefile $(script_templates)
+
+edit = sed -e 's|@address@hidden|$(prefix)|g'
+
+.PHONY: all
+all: $(templates)
+       cd talerblog/blog/static/web-common && make && cd -
+
+Makefile: Makefile.in
+       ./config.status $@
+
+$(script_templates): %: Makefile %.in
+       rm -f $@ address@hidden
+       $(edit) '$(srcdir)/address@hidden' >address@hidden
+       mv address@hidden $@
+
+
+.PHONY: install-data
+install-data: $(templates)
+       @$(INSTALL_DATA) -Dt $(prefix)/share/taler/ frontend-blog.wsgi
+
+#      @test -n "$$(ls -A talerbank/app/static/web-common/)" || \
+#      (echo "please check out git submodules"; exit 1)
+
+
+
+# link package under prefix to source tree
+.PHONY: devinstall
+devinstall: $(templates) install-data
+       @pip3 install -e . --install-option="address@hidden@"
+
+
+# install into prefix
+.PHONY: install
+install: $(templates) install-data
+       @pip3 install . --install-option="address@hidden@"
+       @# force update when sources changed
+       @pip3 install . --install-option="address@hidden@" --upgrade --no-deps
+       cd talerblog/blog/static/web-common && make install && cd -
+
+# run testcases
+.PHONY: check
+check:
+       @export address@hidden@/talersurvey/tests.conf; \
+        python3 talerblog/tests.py
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..88de9a4
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,65 @@
+AC_INIT([talerblog], [0.1.0], address@hidden)
+
+AC_CONFIG_MACRO_DIR([m4])
+AM_INIT_AUTOMAKE
+AC_PROG_AWK
+AC_PROG_SED
+
+#
+# Check for Python
+#
+
+PC_INIT([3.4])
+pyheaders=0
+PC_PYTHON_CHECK_HEADERS([pyheaders=1])
+
+#
+# Check for pip3
+#
+
+AC_MSG_CHECKING([pip3])
+pip3 --version >/dev/null
+if test $? -ne 0;
+  then
+  AC_MSG_ERROR([Please install pip3>=6.0])
+fi
+
+VERSION=$(pip3 --version | $AWK '{ print $2 }')
+
+AC_MSG_RESULT([$VERSION])
+
+AX_COMPARE_VERSION([$VERSION],[lt],[6.0], [AC_MSG_ERROR([Please install 
pip3>=6.0])])
+
+
+#
+# Check for tsc
+#
+AC_CHECK_PROG([tsc],[tsc],[yes],[no])
+AM_CONDITIONAL([HAVE_TSC], [test "x$tsc" = xyes])
+
+#
+# Check for minifier
+#
+AC_MSG_CHECKING([Checking for jsmin])
+python3 -m jsmin &> /dev/null
+if test $? -ne 0;
+  then
+  AC_MSG_ERROR([Please install Python3 module 'jsmin'])
+fi
+
+#
+# Report
+#
+if test x$pyheaders != x1; then
+  AC_MSG_WARN([Python headers not installed, might be required to build uwsgi])
+fi
+
+
+#
+# Finish
+#
+
+AC_CONFIG_FILES([Makefile
+  talerblog/blog/static/web-common/Makefile])
+
+AC_OUTPUT

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]