Make appname lowercase.

This commit is contained in:
Bastian Kleineidam 2014-06-09 13:24:58 +02:00
parent 531e612834
commit 68afeaf82d
5 changed files with 21 additions and 21 deletions

2
.gitignore vendored
View file

@ -8,7 +8,7 @@
/MANIFEST /MANIFEST
/todo /todo
/Changelog.dosage* /Changelog.dosage*
/_Dosage_configdata.py /_dosage_configdata.py
/comics.test /comics.test
/testresults.txt /testresults.txt
/dosage.prof /dosage.prof

View file

@ -5,16 +5,15 @@ VERSION:=$(shell $(PYTHON) setup.py --version)
MAINTAINER:=$(shell $(PYTHON) setup.py --maintainer) MAINTAINER:=$(shell $(PYTHON) setup.py --maintainer)
AUTHOR:=$(shell $(PYTHON) setup.py --author) AUTHOR:=$(shell $(PYTHON) setup.py --author)
APPNAME:=$(shell $(PYTHON) setup.py --name) APPNAME:=$(shell $(PYTHON) setup.py --name)
LAPPNAME:=$(shell echo $(APPNAME)|tr "[A-Z]" "[a-z]") ARCHIVE_SOURCE:=$(APPNAME)-$(VERSION).tar.gz
ARCHIVE_SOURCE:=$(LAPPNAME)-$(VERSION).tar.gz ARCHIVE_WIN32:=$(APPNAME)-$(VERSION).exe
ARCHIVE_WIN32:=$(LAPPNAME)-$(VERSION).exe
GITUSER:=wummel GITUSER:=wummel
GITREPO:=$(LAPPNAME) GITREPO:=$(APPNAME)
HOMEPAGE:=$(HOME)/public_html/dosage-webpage.git HOMEPAGE:=$(HOME)/public_html/dosage-webpage.git
WEBMETA:=doc/web/app.yaml WEBMETA:=doc/web/app.yaml
DEBUILDDIR:=$(HOME)/projects/debian/official DEBUILDDIR:=$(HOME)/projects/debian/official
DEBORIGFILE:=$(DEBUILDDIR)/$(LAPPNAME)_$(VERSION).orig.tar.gz DEBORIGFILE:=$(DEBUILDDIR)/$(APPNAME)_$(VERSION).orig.tar.gz
DEBPACKAGEDIR:=$(DEBUILDDIR)/$(LAPPNAME)-$(VERSION) DEBPACKAGEDIR:=$(DEBUILDDIR)/$(APPNAME)-$(VERSION)
# Default pytest options # Default pytest options
# Note that using -n silently swallows test creation exceptions like # Note that using -n silently swallows test creation exceptions like
# import errors. # import errors.
@ -51,15 +50,16 @@ upload_binary:
cp dist/$(ARCHIVE_WIN32) dist/$(ARCHIVE_WIN32).asc \ cp dist/$(ARCHIVE_WIN32) dist/$(ARCHIVE_WIN32).asc \
$(HOMEPAGE)/dist $(HOMEPAGE)/dist
homepage: update_webmeta:
# update metadata # update metadata
@echo "version: \"$(VERSION)\"" > $(WEBMETA) @echo "version: \"$(VERSION)\"" > $(WEBMETA)
@echo "name: \"$(APPNAME)\"" >> $(WEBMETA) @echo "name: \"$(APPNAME)\"" >> $(WEBMETA)
@echo "lname: \"$(LAPPNAME)\"" >> $(WEBMETA)
@echo "maintainer: \"$(MAINTAINER)\"" >> $(WEBMETA) @echo "maintainer: \"$(MAINTAINER)\"" >> $(WEBMETA)
@echo "author: \"$(AUTHOR)\"" >> $(WEBMETA) @echo "author: \"$(AUTHOR)\"" >> $(WEBMETA)
git add $(WEBMETA) git add $(WEBMETA)
-git commit -m "Updated webpage meta info" -git commit -m "Updated webpage meta info"
homepage: update_webmeta
# update documentation and release website # update documentation and release website
$(MAKE) -C doc $(MAKE) -C doc
$(MAKE) -C doc/web release $(MAKE) -C doc/web release
@ -75,7 +75,7 @@ register:
@echo "Register at Python Package Index..." @echo "Register at Python Package Index..."
$(PYTHON) setup.py register $(PYTHON) setup.py register
@echo "Submit to freecode..." @echo "Submit to freecode..."
freecode-submit < $(LAPPNAME).freecode freecode-submit < $(APPNAME).freecode
releasecheck: releasecheck:
git checkout master git checkout master
@ -89,8 +89,8 @@ releasecheck:
echo "Missing WIN32 distribution archive at ../$(ARCHIVE_WIN32)"; \ echo "Missing WIN32 distribution archive at ../$(ARCHIVE_WIN32)"; \
false; \ false; \
fi fi
@if ! grep "Version: $(VERSION)" $(LAPPNAME).freecode > /dev/null; then \ @if ! grep "Version: $(VERSION)" $(APPNAME).freecode > /dev/null; then \
echo "Could not release: edit $(LAPPNAME).freecode version"; false; \ echo "Could not release: edit $(APPNAME).freecode version"; false; \
fi fi
$(PYTHON) setup.py check --restructuredtext $(PYTHON) setup.py check --restructuredtext
git checkout debian git checkout debian
@ -131,7 +131,7 @@ clean:
rm -rf build dist rm -rf build dist
distclean: clean distclean: clean
rm -rf $(APPNAME).egg-info $(LAPPNAME).prof test.sh Comics rm -rf $(APPNAME).egg-info $(APPNAME).prof test.sh Comics
rm -f _$(APPNAME)_configdata.py MANIFEST rm -f _$(APPNAME)_configdata.py MANIFEST
localbuild: localbuild:
@ -148,7 +148,7 @@ deb:
# To build a local .deb package, use: # To build a local .deb package, use:
# $ sudo apt-get build-dep dosage; apt-get source dosage; cd dosage-*; debuild binary # $ sudo apt-get build-dep dosage; apt-get source dosage; cd dosage-*; debuild binary
[ -f $(DEBORIGFILE) ] || cp dist/$(ARCHIVE_SOURCE) $(DEBORIGFILE) [ -f $(DEBORIGFILE) ] || cp dist/$(ARCHIVE_SOURCE) $(DEBORIGFILE)
sed -i -e 's/VERSION_$(LAPPNAME):=.*/VERSION_$(LAPPNAME):=$(VERSION)/' $(DEBUILDDIR)/$(LAPPNAME).mak sed -i -e 's/VERSION_$(APPNAME):=.*/VERSION_$(APPNAME):=$(VERSION)/' $(DEBUILDDIR)/$(APPNAME).mak
[ -d $(DEBPACKAGEDIR) ] || (cd $(DEBUILDDIR); \ [ -d $(DEBPACKAGEDIR) ] || (cd $(DEBUILDDIR); \
patool extract $(DEBORIGFILE); \ patool extract $(DEBORIGFILE); \
cd $(CURDIR); \ cd $(CURDIR); \
@ -156,7 +156,7 @@ deb:
cp -r debian $(DEBPACKAGEDIR); \ cp -r debian $(DEBPACKAGEDIR); \
rm -f $(DEBPACKAGEDIR)/debian/.gitignore; \ rm -f $(DEBPACKAGEDIR)/debian/.gitignore; \
git checkout master) git checkout master)
$(MAKE) -C $(DEBUILDDIR) $(LAPPNAME)_clean $(LAPPNAME) $(MAKE) -C $(DEBUILDDIR) $(APPNAME)_clean $(APPNAME)
update-copyright: update-copyright:
# update-copyright is a local tool which updates the copyright year for each # update-copyright is a local tool which updates the copyright year for each

View file

@ -39,12 +39,12 @@
<aside id="sidebar"> <aside id="sidebar">
<h2>Downloads</h2> <h2>Downloads</h2>
<p> <p>
<a href="http://wummel.github.io/{{site.app.lname}}/dist/{{site.app.lname}}-{{site.app.version}}.tar.gz" <a href="http://wummel.github.io/{{site.app.name}}/dist/{{site.app.name}}-{{site.app.version}}.tar.gz"
title="Download source .tar.gz package" title="Download source .tar.gz package"
class="button"><span>Source {{site.app.lname}}-{{site.app.version}}.tar.gz</span></a> class="button"><span>Source {{site.app.name}}-{{site.app.version}}.tar.gz</span></a>
<a href="http://wummel.github.io/{{site.app.lname}}/dist/{{site.app.lname}}-{{site.app.version}}.exe" <a href="http://wummel.github.io/{{site.app.name}}/dist/{{site.app.name}}-{{site.app.version}}.exe"
title="Download Windows .exe installer" title="Download Windows .exe installer"
class="button"><span>Windows {{site.app.lname}}-{{site.app.version}}.exe</span></a> class="button"><span>Windows {{site.app.name}}-{{site.app.version}}.exe</span></a>
</p> </p>
<p><a href="https://github.com/wummel/dosage/blob/master/doc/changelog.txt">Changelog</a></p> <p><a href="https://github.com/wummel/dosage/blob/master/doc/changelog.txt">Changelog</a></p>
<p class="repo-owner"><a href="https://github.com/wummel/dosage">{{site.app.name}}</a> is <p class="repo-owner"><a href="https://github.com/wummel/dosage">{{site.app.name}}</a> is

View file

@ -2,7 +2,7 @@
""" """
Define basic configuration data like version or application name. Define basic configuration data like version or application name.
""" """
import _Dosage_configdata as configdata import _dosage_configdata as configdata
Version = configdata.version Version = configdata.version
ReleaseDate = configdata.release_date ReleaseDate = configdata.release_date

View file

@ -36,7 +36,7 @@ from distutils import util
from distutils.file_util import write_file from distutils.file_util import write_file
AppVersion = '2.14' AppVersion = '2.14'
AppName = 'Dosage' AppName = 'dosage'
py_excludes = ['doctest', 'unittest', 'Tkinter', 'pdb', py_excludes = ['doctest', 'unittest', 'Tkinter', 'pdb',
'email', 'ftplib', 'pickle', 'email', 'ftplib', 'pickle',