Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
added makedist; fixed version in .pro
- Loading branch information
Kevron Rees
committed
Oct 16, 2010
1 parent
e3920ee
commit 934b40b
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#-*-Shell-Script-*- | ||
|
||
TEMPLATE = lib | ||
VERSION = 0.0.3 | ||
VERSION = 0.0.1 | ||
CONFIG += qt \ | ||
debug | ||
QT += dbus | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
|
||
|
||
|
||
# Determine project name based on current directory | ||
#PROJECT=$(basename $PWD) | ||
PROJECT=connman-qt | ||
|
||
# NOTE: Don't like this? Then uncomment one of the following as appropriate | ||
# | ||
# Just set it explictly to whatever you like: | ||
# PROJECT=libseaside | ||
# | ||
# Parse it from any Qt *.pro or *.pri files in CWD: | ||
# PROJECT=$(grep -E "TARGET ?= ?" *.pr[io]|cut -d' ' -f3) | ||
|
||
while getopts ht: o | ||
do case $o in | ||
h) head=1;; | ||
t) TAG="$OPTARG";; | ||
?) printf >&2 "Usage: $0 [-h] [-t TAG]\n" | ||
exit 2;; | ||
esac | ||
done | ||
|
||
# Grab most recent tag from git unless TAG is set | ||
if [ -z "$TAG" ] ; then | ||
TAG=$(git describe --tags --abbrev=0) | ||
fi | ||
|
||
# Parse out just the version number | ||
#PARTS=(${TAG//-/ }) | ||
#VERSION=${PARTS[1]} | ||
VERSION=${TAG} | ||
|
||
# Set name of toplevel directory for the archive | ||
PREFIX="${PROJECT}-${VERSION}/" | ||
|
||
# Set name of resulting release archive file | ||
ARCHIVE=${PROJECT}-${VERSION}.tar.bz2 | ||
|
||
[ -e ${ARCHIVE} ] && rm -rf ${ARCHIVE} && echo "Removed: ${ARCHIVE}" | ||
|
||
if [ ! -z "$head" ] ; then | ||
TAG="HEAD" | ||
fi | ||
|
||
git archive --format=tar --prefix=${PREFIX} $TAG | bzip2 -c -- > ${ARCHIVE} && { | ||
echo "Created: ${ARCHIVE}" | ||
} || { | ||
echo "Creation of release archive ${ARCHIVE} failed. Reason unknown." | ||
} |