Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
9e18b78a
Commit
9e18b78a
authored
May 11, 2016
by
Jamie Hall
Browse files
Update build_deb.sh
parent
19bd1812
Pipeline
#281
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Debian/build_deb.sh
View file @
9e18b78a
...
...
@@ -26,12 +26,12 @@ cd $CI_PROJECT_DIR
# Get revision number from git (without trailing newline)
REV_NUMBER
=
$(
git rev-list
--count
HEAD
)
echo
"
$BLEU
""Revision number
is -->
${
REV_NUMBER
}
<--"
"
$NORMAL
"
echo
-e
"
$BLEU
""Revision number
=
${
REV_NUMBER
}
<--"
"
$NORMAL
"
# Add current revision number to python source code (will appear in "About..." dialog)
# see http://stackoverflow.com/questions/7648328/getting-sed-error
sed
-i
"/
__version__
/c
\
_
_version__ =
'
${
CI_BUILD_TAG
}
'
"
MDANSE/__pkginfo__.py
sed
-i
"/
__revision__
/c
\
_
_revision__ =
'
${
REV_NUMBER
}
'/"
MDANSE/__pkginfo__.py
sed
-i
''
's/.*
__version__
.*/
__version__ =
\"
${CI_BUILD_TAG}
\"/
'
MDANSE/__pkginfo__.py
sed
-i
''
's/.*
__revision__
.*/
__revision__ =
\"
${REV_NUMBER}
\"/'
MDANSE/__pkginfo__.py
#MDANSE_VERSION=$(grep -Po '(?<=__version__ = \")\d.\d.\d' MDANSE/__pkginfo__.py)
...
...
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