Commit c5f79deb authored by Diego Pasqualin's avatar Diego Pasqualin

le-search: Add parses-contents binary and source

Signed-off-by: default avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 3ee98d4a
TOPDIR = .
SRCDIR = $(TOPDIR)/src
SCRIPTDIR = $(TOPDIR)/gnome-shell
LIBDIR = $(TOPDIR)/lib
BINDIR = bin
LIBXMLDIR = lib
PKGDIR = $(TOPDIR)/deb/le_search
all:
cd $(LIBDIR) && make all
cd $(SRCDIR) && make all
@$(TOPDIR)/build_package.sh
parser:
cd $(SRCDIR) && make all
install: all
@cd $(LIBDIR) && make install
@cd $(SRCDIR) && make install
@cd $(SCRIPTDIR) && make install
clean:
cd $(LIBDIR) && make clean
cd $(SRCDIR) && make clean
distclean:
cd $(LIBDIR) && make distclean
cd $(SRCDIR) && make distclean
TOPDIR = .
SRCDIR = $(TOPDIR)/src
BINDIR = pacote/usr/bin
BIN = parses-contents
all: parses
parses:
cd $(SRCDIR) && make all
install:
cp $(SRCDIR)/$(BIN) $(BINDIR)/$(BIN)
clean:
cd $(SRCDIR) && make clean
distclean:
cd $(SRCDIR) && make distclean
rm -f $(BINDIR)/$(BIN)
Before generate a new package make sure you have compiled the
parses-contents binary file. To do so copy this directory (le-search) to the
system that will use it and run make && make install. For now it should work
for any version of libxml2.
......@@ -11,6 +11,14 @@ MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
PARSER="pacote/usr/bin/parses-contents"
if ! test -e $PARSER; then
echo "Voce deve compilar o arquivo $PARSER antes de gerar o pacote."
echo "Leia o README para mais informacoes."
exit 1
fi
case $1 in
Minor)
((MINOR++))
......@@ -33,13 +41,6 @@ case $1 in
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -a pacote $DIRTMP
......@@ -50,12 +51,13 @@ cd $DIRTMP
find . -name ".git" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
fakeroot dpkg -b pacote . || (cd - && exit 2)
cd -
cd - &>/dev/null
cp $DIRTMP/*deb .
rm -rf $DIRTMP
echo "$VERSAO" > VERSAO
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
CC= gcc
TOPDIR = ..
LIBXML := $(shell test -d "$(TOPDIR)/lib/libxml2" && echo libxml2)
BINDIR = $(TOPDIR)/bin
LIBDIR = $(TOPDIR)/lib
XMLDIR = $(LIBDIR)/$(LIBXML)
PREFIX = .
BINDIR = $(PREFIX)/bin
XMLFLAGS := $(shell xml2-config --cflags)
XMLLIBS := $(shell xml2-config --libs)
INCXMLDIR = $(XMLDIR)/include
LIBXMLDIR = $(XMLDIR)/lib
RELNANO = 1.1
CCFLAGS = -m32 -static -g -Wall -I$(INCXMLDIR)/libxml2 -pthread -L$(LIBXMLDIR) -lxml2
CCFLAGS = -m32 -g -Wall -pthread $(XMLFLAGS)
OBJ = parses-contents.o
BIN = parses-contents
all: $(OBJ)
$(CC) $(CCFLAGS) $(OBJ) $(LIBXMLDIR)/libxml2.a -o $(PWD)/$(BIN)
$(CC) $(CCFLAGS) $(OBJ) -o $(PWD)/$(BIN) $(XMLLIBS)
install: all
@mkdir -p $(BINDIR)
@mv -f $(PWD)/$(BIN) $(BINDIR)/$(BIN)
parses-contents.o: parses-contents.c
$(CC) $(CCFLAGS) -c parses-contents.c
$(CC) $(CCFLAGS) -c parses-contents.c $(XMLLIBS)
clean:
@find $(PWD) -type f \( -name '*~' -o -name '*.bak' -o -name 'core*' \)\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment