From 87f2da811db9b5e84aeacb11bca42911aa40be79 Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Mon, 13 Sep 2010 17:15:51 -0700 Subject: [PATCH] Fixed project. version bump --- McpBluetooth.conf => bluetooth-qt.conf | 0 bluetooth-qt.pro | 9 +++++- makedist | 52 ++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) rename McpBluetooth.conf => bluetooth-qt.conf (100%) create mode 100755 makedist diff --git a/McpBluetooth.conf b/bluetooth-qt.conf similarity index 100% rename from McpBluetooth.conf rename to bluetooth-qt.conf diff --git a/bluetooth-qt.pro b/bluetooth-qt.pro index 21468f3..ae80ae9 100644 --- a/bluetooth-qt.pro +++ b/bluetooth-qt.pro @@ -6,12 +6,14 @@ !exists(headset.h):system(qdbusxml2cpp -p headset.h:headset.cpp headset.xml) include(obex/obex.pri) +VERSION+= 0.0.1 + TEMPLATE = lib TARGET = bluetooth-qt QT += dbus CONFIG += link_pkgconfig \ debug -OTHER_FILES += McpBluetooth.conf \ +OTHER_FILES += bluetooth-qt.conf \ manager.xml \ device.xml \ audiosrc.xml \ @@ -58,3 +60,8 @@ pkgconfig.path = $$INSTALL_ROOT/usr/lib/pkgconfig pkgconfig.files = bluetooth-qt.pc INSTALLS += pkgconfig + +dbusfiles.path = $$INSTALL_ROOT/etc/dbus-1/system.d +dbusfiles.files = bluetooth-qt.conf + +INSTALLS += dbusfiles diff --git a/makedist b/makedist new file mode 100755 index 0000000..f260801 --- /dev/null +++ b/makedist @@ -0,0 +1,52 @@ +#!/bin/bash + + + + +# Determine project name based on current directory +PROJECT=$(basename $PWD) + +# 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." +} -- 2.7.4