debian build script improvements
This commit is contained in:
parent
3becef5395
commit
eb2d16c574
6
Makefile
6
Makefile
|
@ -1,6 +1,6 @@
|
||||||
APP=pybitmessage
|
APP=pybitmessage
|
||||||
VERSION=0.3.2
|
VERSION=0.3.211
|
||||||
DEST_SHARE=/usr/share
|
DEST_SHARE=$(DESTDIR)/usr/share
|
||||||
DEST_APP=$(DEST_SHARE)/$(APP)
|
DEST_APP=$(DEST_SHARE)/$(APP)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
@ -8,7 +8,7 @@ all:
|
||||||
debug:
|
debug:
|
||||||
|
|
||||||
source:
|
source:
|
||||||
tar -cvzf ../$(APP)_$(VERSION).orig.tar.gz ../$(APP)-$(VERSION) --exclude=.git
|
tar -cvzf ../$(APP)_$(VERSION).orig.tar.gz ../$(APP)-$(VERSION) --exclude-vcs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -m 755 -p $(DEST_APP)
|
mkdir -m 755 -p $(DEST_APP)
|
||||||
|
|
12
debian.sh
12
debian.sh
|
@ -7,15 +7,25 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
APP=pybitmessage
|
APP=pybitmessage
|
||||||
|
PREV_VERSION=0.3.2
|
||||||
VERSION=0.3.2
|
VERSION=0.3.2
|
||||||
ARCH_TYPE=all
|
ARCH_TYPE=all
|
||||||
|
|
||||||
|
#update version numbers automatically - so you don't have to
|
||||||
|
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
|
||||||
|
sed -i 's/'''${PREV_VERSION}'''/'''${VERSION}'''/g' src/shared.py
|
||||||
|
|
||||||
# Create a source archive
|
# Create a source archive
|
||||||
make clean
|
make clean
|
||||||
|
# change the directory name to pybitmessage-version
|
||||||
|
mv ../PyBitmessage ../${APP}-${VERSION}
|
||||||
make source
|
make source
|
||||||
|
|
||||||
# Build the package
|
# Build the package
|
||||||
fakeroot dpkg-buildpackage -A
|
dpkg-buildpackage -A
|
||||||
|
|
||||||
|
# change the directory name back
|
||||||
|
mv ../${APP}-${VERSION} ../PyBitmessage
|
||||||
|
|
||||||
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
|
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
|
||||||
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
|
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
softwareVersion = '0.3.2'
|
softwareVersion = '0.3.211'
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in New Issue
Block a user