Commit 689cf043 authored by sm's avatar sm

Set links to efanomars.com

parent 1a6c466c
......@@ -29,7 +29,7 @@ debian packages (and their dependencies):
The command to build, from the directory of this file, is
$ ./scripts/debian_create_srcpkg.py --builddir=~/Tmp/builddir
$ ./scripts/debian_create.py --builddir=~/Tmp/builddir
where builddir must be an non existent or empty folder. This builds
a Debian source package and from it the binary packages using Debian
......
......@@ -3,6 +3,8 @@ stmm-input-gtk-bt
Keyboard like devices for stmm-input framework connected over bluetooth.
For more info visit http://www.efanomars.com/libraries/stmm-input-bt
This source package contains:
- libstmm-input-gtk-bt:
......
......@@ -8,7 +8,7 @@ includedir=${prefix}/include
Name: stmm-input-gtk-bt
Description: Gtk main loop based device manager for connected bluetooth devices-
Version: @STMM_INPUT_GTK_BT_VERSION@
URL: https://gitlab.com/efanomars/stmm-input-bt
URL: http://www.efanomars.com/libraries/stmm-input-bt
# Beware! The space between the library name and the comparison (>=) is necessary!
Requires: stmm-input-ev >= @STMM_INPUT_GTK_BT_REQ_STMM_INPUT_EV_VERSION@ stmm-input-gtk >= @STMM_INPUT_GTK_BT_REQ_STMM_INPUT_GTK_VERSION@ bluez >= @STMM_INPUT_GTK_BT_REQ_BLUETOOTH_VERSION@
Conflicts:
......
......@@ -14,9 +14,9 @@ Build-Depends: debhelper (>= 9)
, libgconfmm-2.6-dev (>= @STMM_INPUT_BTKB_REQ_GCONFMM_VERSION@)
Standards-Version: 3.9.8
Section: libs
Homepage: http://www.gitlab.com/efanomars/stmm-input-bt
Homepage: http://www.efanomars.com/libraries/stmm-input-bt
Vcs-Git: https://www.gitlab.com/efanomars/stmm-input-bt.git
#Vcs-Browser: https://www.gitlab.com/efanomars/stmm-input-bt/stmm-input-bt.git
#Vcs-Browser: https://www.gitlab.com/efanomars/stmm-input-bt.git
Package: libstmm-input-gtk-bt@STMM_INPUT_GTK_BT_MAJOR_VERSION@
......
......@@ -92,13 +92,28 @@ g_oDatePatt = re.compile(g_sDateRegex)
g_sChangeDateRegex = "^ -- (.*) <(.*)> (" + g_sDateCommonRegex + ")[ ]*$"
g_oChangeDatePatt = re.compile(g_sChangeDateRegex)
g_sDefaultPackagerFullName = "Stefano Marsili"
g_sDefaultPackagerEMail = "efanomars@gmx.ch"
try:
g_sPackagerFullName = os.environ["DEBFULLNAME"]
except KeyError:
#raise RuntimeError("Couldn't get environment variable DEBFULLNAME")
g_sPackagerFullName = g_sDefaultPackagerFullName
try:
os.environ["DEBFULLNAME"] = g_sPackagerFullName
except KeyError:
raise RuntimeError("Couldn't set environment variable DEBFULLNAME to: " + g_sPackagerFullName)
try:
g_sPackagerEMail = os.environ["DEBEMAIL"]
except KeyError:
#raise RuntimeError("Couldn't get environment variable DEBFULLNAME, DEBEMAIL")
g_sPackagerFullName = "John Foo-Doe"
g_sPackagerEMail = "email@example.com"
#raise RuntimeError("Couldn't get environment variable DEBEMAIL")
g_sPackagerEMail = g_sDefaultPackagerEMail
try:
os.environ["DEBEMAIL"] = g_sPackagerEMail
except KeyError:
raise RuntimeError("Couldn't set environment variable DEBEMAIL to: " + g_sPackagerEMail)
#==============================================================================
def stringIsAllDigitsOrEmpty(sStr):
......@@ -198,7 +213,10 @@ def main():
bHasDevLibs = (len(g_oDevLibs) > 0)
import argparse
oParser = argparse.ArgumentParser(description="Create DEBIAN source package, binary packages and dist zip."
oParser = argparse.ArgumentParser(description="Create DEBIAN source package, binary packages and dist zip.\n"
" If not defined environment variable DEBFULLNAME is set to '"
+ g_sDefaultPackagerFullName + "',\n"
" and DEBEMAIL is set to '" + g_sDefaultPackagerEMail + "'"
, formatter_class=argparse.RawDescriptionHelpFormatter)
oParser.add_argument("--version", help="the debian source package version (overrides CHANGES)", metavar='VERSION'\
, default="", dest="sDebSrcVersion")
......@@ -338,7 +356,10 @@ def main():
os.chmod("debian/" + sEntry, oStat.st_mode | stat.S_IXUSR)
if not oArgs.bDontBinaries:
subprocess.check_call("dpkg-buildpackage -us -uc", shell=True)
g_sPackagerEMail = g_sDefaultPackagerEMail
sDebianBuildCmd = "DEBFULLNAME=\"" + g_sPackagerFullName + "\" DEBEMAIL=\"" + g_sPackagerEMail + "\" "\
+ "dpkg-buildpackage -us -uc"
subprocess.check_call(sDebianBuildCmd, shell=True)
if not oArgs.bDontDist:
os.chdir(sBuildPath)
......
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