Skip to content

Instantly share code, notes, and snippets.

View dcolish's full-sized avatar

Dan dcolish

View GitHub Profile
@dcolish
dcolish / jdoc.sh
Created February 9, 2013 19:31
Always have the javadocs
#!/bin/bash
if [ $DEBUG ]; then
set -x
fi
set -e
unpackJar() {
echo $1
Foo
===
.. only:: python
.. code-block:: python
>>> foo = 'hello'
>>> print foo
$ free -m
total used free shared buffers cached
Mem: 32212 31969 242 0 75 1625
-/+ buffers/cache: 30269 1942
Swap: 4215 67 4148
sqlite> .headers on
sqlite> select id as meh, value as omg from bar;
meh omg
---------- ----------
1 hello
2 world
"""
Gist
----
Gist is a command line tool for interacting with `gist.github.com`_. Usage
information is available through the command line interface help.
.. _gist.github.com: <https://gist.github.com>
.. important::
import java.util.*;
class ItorTest {
ArrayList<String> foo;
public static void main (String [] args) {
ArrayList<String> foo = new ArrayList<String>();
foo.add("Hello");
foo.add("World");
for (Iterator<String> it = foo.iterator(); it.hasNext();) {
diff --git a/xapian-bindings/java/Makefile.am b/xapian-bindings/java/Makefile.am
index e1adf65..2be037d 100644
--- a/xapian-bindings/java/Makefile.am
+++ b/xapian-bindings/java/Makefile.am
@@ -16,10 +16,10 @@ SmokeTest: SmokeTest.class
if MAINTAINER_MODE
.java.class:
- $(JAVAC) -g -classpath $(srcdir)$(JAVA_PATHSEP). -d . $<
+ $(JAVAC) -g -classpath $(srcdir)$(JAVA_PATHSEP). -d . $(JFLAGS) $<
diff --git a/xapian-core/queryparser/linkgrammar.cc b/xapian-core/queryparser/linkgrammar.cc
index 37518a9..dbcafb7 100755
--- a/xapian-core/queryparser/linkgrammar.cc
+++ b/xapian-core/queryparser/linkgrammar.cc
@@ -32,10 +32,9 @@ using namespace Xapian;
using namespace std;
-LinkGrammar::LinkGrammar(const string & language, const int seconds)
+LinkGrammar::LinkGrammar(const string & language, const int seconds) :
make all-recursive
make[1]: Entering directory `/tmp/xapian/xapian-core'
Making all in .
make[2]: Entering directory `/tmp/xapian/xapian-core'
/bin/bash ./libtool --tag=CXX --mode=link g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -Werror -fvisibility=hidden -g -O2 -o bin/xapian-delve bin/xapian-delve.o libgetopt.la libxapian-1.3.la -licuuc -llink-grammar
libtool: link: g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -Werror -fvisibility=hidden -g -O2 -o bin/.libs/xapian-delve bin/xapian-delve.o ./.libs/libgetopt.a ./.libs/libxapian-
make all-recursive
make[1]: Entering directory `/tmp/xapian/xapian-core'
Making all in .
make[2]: Entering directory `/tmp/xapian/xapian-core'
depbase=`echo queryparser/queryparser_internal.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./common -I./include -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -Werror -fvisibility=hidden -g -O2 -MT queryparser/queryparser_internal.lo -MD -MP -MF $depbase.Tpo -c -o queryparser/queryparser_internal.lo queryparser/queryparser_internal.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./common -I./include -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywor