Skip to content

Commit

Permalink
Deb maker start
Browse files Browse the repository at this point in the history
  • Loading branch information
varche1 committed Jun 21, 2012
1 parent 7f838e0 commit 197c764
Show file tree
Hide file tree
Showing 13 changed files with 96 additions and 20 deletions.
6 changes: 5 additions & 1 deletion argparser.py
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-

import sys
import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

from log import logging
import out

Expand Down
30 changes: 15 additions & 15 deletions bash_completion/geeknote 100755 → 100644
@@ -1,15 +1,15 @@
_geeknote_command()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
SAVE_IFS=$IFS
IFS=" "
args="${COMP_WORDS[*]}"
IFS=$SAVE_IFS
COMPREPLY=( $(compgen -W "`python /home/skaizer/geeknote_autocomplete.py ${args}`" -- ${cur}) )
return 0
}
complete -F _geeknote_command geeknote
_geeknote_command()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"

SAVE_IFS=$IFS
IFS=" "
args="${COMP_WORDS[*]}"
IFS=$SAVE_IFS

COMPREPLY=( $(compgen -W "`geeknote autocomplete ${args}`" -- ${cur}) )

return 0
}
complete -F _geeknote_command geeknote
29 changes: 29 additions & 0 deletions deb_maker.py
@@ -0,0 +1,29 @@
#!/usr/bin/env python
#-*- coding:utf-8 -*-

from glob import glob
import os

from py2deb import Py2deb

p=Py2deb("geeknote")

p.author="Ivan Gureev, Vitaliy Rodnenko, Simon Moiseenko"
p.mail="vitaly@webpp.ru"
p.description="Geeknote - is a command line client for Evernote, that can be use on Linux, FreeBSD and OS X."
p.url = "http://geeknote.me"
p.depends="python"
p.license="gpl"
p.section="utils"
p.arch="all"

p["/usr/bin"] = ["geeknote.py|geeknote", "gnsync.py|gnsync"]

p["/etc/bash_completion.d"] = ["bash_completion/geeknote"]

# p["/usr/local/lib/geeknone"] = ["lib"]
# p["/usr/local/lib/geeknone"] = glob("unit/*.*")

p["/usr/local/lib/geeknone"] = ["geeknote.py" ,"argparser.py", "editor.py", "log.py", "oauth.py", "out.py", "storage.py", "tools.py"]

p.generate("0.0.1")
5 changes: 5 additions & 0 deletions editor.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-

import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

import tempfile
import html2text
import markdown
Expand Down
4 changes: 4 additions & 0 deletions geeknote.py
Expand Up @@ -5,6 +5,10 @@
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
sys.path.append( os.path.join(PROJECT_ROOT, 'lib') )

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone', 'lib'))

import hashlib
import binascii
import time
Expand Down
Binary file added geeknote_0.0.1_all.deb
Binary file not shown.
7 changes: 6 additions & 1 deletion gnsync.py
@@ -1,7 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import argparse
import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

import argparse
import glob
import logging

Expand Down
5 changes: 5 additions & 0 deletions log.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-

import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

import logging

FORMAT = "%(asctime)-15s %(module)s : %(message)s"
Expand Down
5 changes: 5 additions & 0 deletions oauth.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-

import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

import httplib
import time
import Cookie
Expand Down
6 changes: 5 additions & 1 deletion out.py
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-

import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

import getpass
import time
import sys
import thread
import tools
import editor
Expand Down
7 changes: 6 additions & 1 deletion storage.py
@@ -1,6 +1,11 @@
# -*- coding: utf-8 -*-

import os
import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone', 'lib'))

import datetime
import pickle

Expand Down
6 changes: 6 additions & 0 deletions test.py
@@ -1,4 +1,10 @@
# -*- coding: utf-8 -*-

import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

import unittest
import out
import tools
Expand Down
6 changes: 5 additions & 1 deletion tools.py
@@ -1,7 +1,11 @@
# -*- coding: utf-8 -*-

import os, sys

# path to libs in unix systems
sys.path.append( os.path.join('/', 'usr', 'local', 'lib', 'geeknone'))

from log import logging
import sys

def checkIsInt(value):
try:
Expand Down

0 comments on commit 197c764

Please sign in to comment.