/relevation/branches/1.2/GNUmakefile |
---|
File deleted |
Property changes: |
Deleted: svn:keywords |
-Rev Id Date |
\ No newline at end of property |
/relevation/branches/1.2/CHANGELOG |
---|
1,9 → 1,5 |
$Date$ |
1.1.1 (2012-08): |
- Bugfix: Make case-insensitive search work on uppercase search |
strings |
1.1 (2011-07-13): |
- Support cryptopy if PyCrypto is not available. Enhances |
cross-platform support. |
/relevation/branches/1.2/Makefile |
---|
0,0 → 1,73 |
# $Id$ |
prefix:=/usr/local |
DESTDIR:= |
PKG=relevation |
VERSION=$(shell echo -e 'import relevation\nprint relevation.__version__' | python -) |
PKGVER=$(PKG)-$(VERSION) |
INSTALLROOT=$(DESTDIR)$(prefix) |
MANROOT=$(INSTALLROOT)/share/man |
all: $(PKG).1 |
testman: |
docbook-to-man manpage.sgml | nroff -man | less |
clean: |
-$(RM) *.pyc *.pyo manpage.html manpage.pdf |
distclean: clean |
-$(RM) $(PKGVER).tar.gz $(PKGVER).zip |
-$(RM) -r dist build |
install: |
install -D -m755 $(PKG).py $(INSTALLROOT)/bin/$(PKG) |
install -D -m644 $(PKG).1 $(MANROOT)/man1/$(PKG).1 |
# Extra tools |
install -d $(INSTALLROOT)/share/doc/$(PKG)/extra |
for tool in gui.py devtools/*.py; do \ |
install -D -m755 $$tool $(INSTALLROOT)/share/doc/$(PKG)/extra/ ; \ |
done |
uninstall: |
-$(RM) $(INSTALLROOT)/bin/$(PKG) $(INSTALLROOT)/share/man/man1/$(PKG).1 |
-for tool in gui.py devtools/*.py; do \ |
$(RM) $(INSTALLROOT)/share/doc/$(PKG)/extra/`basename $$tool` ; \ |
done |
-rmdir --parents $(INSTALLROOT)/share/doc/$(PKG)/extra/ \ |
$(MANROOT)/man1/ \ |
$(INSTALLROOT)/bin/ |
$(PKG).1: manpage_source.sgml |
docbook-to-man $< > $@ |
manpage.html: $(PKG).1 |
man2html $< | sed '1,2d' > $@ |
manpage.pdf: $(PKG).1 |
man -t ./$(PKG).1 | ps2pdf14 - > $@ |
TAR_EXCLUDES=--exclude-vcs --exclude=$(PKGVER) \ |
--exclude=*.swp --exclude=*.pyo --exclude=*.pyc |
is_release: |
# Only allowed if RELEASE |
echo -e 'import relevation\nif not relevation.RELEASE:\n\traise Exception("RELEASE is False")' | python - |
package_copy: |
@# Make a temporary copy to package |
-mkdir $(PKGVER) |
tar c . $(TAR_EXCLUDES) | ( cd $(PKGVER) && tar x ) |
dist: is_release distclean package_copy |
tar cv $(PKGVER) | gzip -c9 > $(PKGVER).tar.gz |
-$(RM) -r $(PKGVER) |
zip: is_release distclean manpage.pdf manpage.html package_copy |
zip -9 -r $(PKGVER).zip $(PKGVER) |
-$(RM) -r $(PKGVER) |
exe: |
python setup_py2exe.py py2exe |
Property changes: |
Added: svn:keywords |
+Rev Id Date |
\ No newline at end of property |
/relevation/branches/1.2/relevation.py |
---|
15,7 → 15,7 |
""" |
# Relevation Password Printer |
# |
# Copyright (c) 2011,2012 Toni Corvera |
# Copyright (c) 2011, Toni Corvera |
# All rights reserved. |
# |
# Redistribution and use in source and binary forms, with or without |
44,7 → 44,6 |
from lxml import etree |
import os |
import stat |
import string |
import sys |
import zlib |
# Help py2exe in packaging lxml |
62,13 → 61,13 |
from crypto.cipher import rijndael, cbc |
from crypto.cipher.base import noPadding |
except ImportError: |
sys.stderr.write('Either PyCrypto or cryptopy is required\n') |
sys.stderr.write('Either PyCrypto or cryptopy are required\n') |
raise |
__author__ = 'Toni Corvera' |
__date__ = '$Date$' |
__revision__ = '$Rev$' |
__version_info__ = ( 1, 1, 1 ) |
__version_info__ = ( 1, 1 ) #, 0 ) |
__version__ = '.'.join(map(str, __version_info__)) |
RELEASE=True |
144,8 → 143,6 |
if search_text: |
xpath = xpath + '//text()' |
if ignore_case: |
# must pass lowercase to actually be case insensitive |
search_text = string.lower(search_text) |
xpath = '%s[contains(translate(., "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz"), "%s")]/../..' % ( xpath, search_text ) |
else: |
xpath = '%s[contains(., "%s")]/../..' % ( xpath, search_text ) |
286,7 → 283,7 |
searchTypes = [] |
dump_xml = False |
printe('Relevation v%s, (c) 2011-2012 Toni Corvera\n' % __version__) |
printe('Relevation v%s, (c) 2011 Toni Corvera\n' % __version__) |
# ---------- OPTIONS ---------- # |
( datafile, password ) = load_config() |
/relevation/branches/1.2/debian/changelog |
---|
1,9 → 1,3 |
relevation (1.1.1-pon.1) unstable; urgency=low |
* New version |
-- Toni Corvera <outlyer@gmail.com> Mon, 20 Aug 2012 01:08:12 +0200 |
relevation (1.1-upstream.1) unstable; urgency=low |
* New version |