Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libconnman-qt
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Labels
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
mer-core
libconnman-qt
Commits
934b40b9
Commit
934b40b9
authored
Oct 15, 2010
by
Kevron Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added makedist; fixed version in .pro
parent
e3920ee7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
3 deletions
+56
-3
libconnman-qt.pro
libconnman-qt.pro
+3
-3
makedist
makedist
+53
-0
No files found.
libconnman-qt.pro
View file @
934b40b9
#-*-Shell-Script-*-
TEMPLATE
=
lib
VERSION
=
0.0
.
3
VERSION
=
0.0
.
1
CONFIG
+=
qt
\
debug
QT
+=
dbus
...
...
@@ -33,7 +33,7 @@ pkgconfig.files = connman-qt.pc
SOURCES
+=
networkitemmodel
.
cpp
\
networklistmodel
.
cpp
\
manager
.
cpp
\
service
.
cpp
\
manager
.
cpp
\
service
.
cpp
\
INSTALLS
+=
target
headers
pkgconfig
makedist
0 → 100755
View file @
934b40b9
#!/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."
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment