Skip to content

Commit

Permalink
give .py extension to hamster-*
Browse files Browse the repository at this point in the history
Otherwise xgettext does not reckognize them as python files.
Removed the execute bit by the way.
  • Loading branch information
ederag committed Dec 27, 2019
1 parent 3f45763 commit 774c315
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ the changes can be quickly tested by
# either
pgrep -af hamster
# and kill them one by one
# or be bold and kill all process with "hamster" in their command line
# or be bold and kill all processes with "hamster" in their command line
pkill -ef hamster
src/hamster-service &
src/hamster-windows-service &
src/hamster-cli
python3 src/hamster-service.py &
python3 src/hamster-windows-service.py &
python3 src/hamster-cli.py
```


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 4 additions & 8 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ def options(opt):


def build(bld):
bld.install_files('${LIBDIR}/hamster',
"""src/hamster-service
src/hamster-windows-service
""",
chmod=Utils.O755)

bld.install_as('${BINDIR}/hamster', "src/hamster-cli", chmod=Utils.O755)
bld.install_as('${LIBDIR}/hamster/hamster-service', "src/hamster-service.py", chmod=Utils.O755)
bld.install_as('${LIBDIR}/hamster/hamster-windows-service', "src/hamster-windows-service.py", chmod=Utils.O755)
bld.install_as('${BINDIR}/hamster', "src/hamster-cli.py", chmod=Utils.O755)


bld.install_files('${PREFIX}/share/bash-completion/completion',
'src/hamster.bash')


bld(features='py',
source=bld.path.ant_glob('src/**/*.py'),
source=bld.path.ant_glob('src/hamster/**/*.py'),
install_from='src')

# set correct flags in defs.py
Expand Down

0 comments on commit 774c315

Please sign in to comment.