Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
praxis-core
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
praxis
praxis-core
Commits
8664b39f
Commit
8664b39f
authored
13 years ago
by
BIGARET Sebastien
Browse files
Options
Downloads
Patches
Plain Diff
New field package_date + release_date=date of last commit in core
parent
fc536df5
No related branches found
No related tags found
No related merge requests found
Pipeline
#94
failed
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
updateReleaseInfo.sh
+17
-6
17 additions, 6 deletions
updateReleaseInfo.sh
with
17 additions
and
6 deletions
updateReleaseInfo.sh
+
17
−
6
View file @
8664b39f
...
...
@@ -3,14 +3,25 @@
# mise à jour de ReleaseInfo.java avec les nums. de release Praxis core+GUI
# et date courante
core
=
$(
cd
~/Projets/praxis-git/praxis-core
;
git rev-parse
--verify
HEAD |
cut
-c
-10
)
swing
=
$(
cd
~/Projets/praxis-git/praxis-swing-gui
;
git rev-parse
--verify
HEAD |
cut
-c
-10
)
echo
core:
$core
GUI:
$swing
1>&2
# git log --pretty=format:'%H %ai' HEAD -1
# git log --pretty=format:'%h, %ad' --date=short -1
#core=$(cd ~/Projets/praxis-git/praxis-core; git rev-parse --verify HEAD | cut -c -10)
#swing=$(cd ~/Projets/praxis-git/praxis-swing-gui; git rev-parse --verify HEAD | cut -c -10)
core
=
$(
cd
~/Projets/praxis-git/praxis-core
;
git log
--pretty
=
format:
'%H %ad'
--date
=
short HEAD
-1
)
swing
=
$(
cd
~/Projets/praxis-git/praxis-swing-gui
;
git log
--pretty
=
format:
'%H %ad --date=short'
HEAD
-1
)
core_htag
=
${
core
%% *
}
swing_htag
=
${
swing
%% *
}
echo
core:
${
core_htag
:0:10
}
GUI:
${
swing_htag
:0:10
}
1>&2
cd
~/Projets/praxis-git/praxis-core/src/eu/telecom_bretagne/praxis/common
sed
-e
's|\(public *static *final *String *release *= *"\)[^"]*";|\1'
"core:
$core
GUI:
$swing
\"
;|"
ReleaseInfo.java
>
ReleaseInfo.java.sed
sed
-i
-e
's|\(public *static *final *String *release *= *"\)[^"]*";|\1'
"core:
${
core_htag
:0:10
}
GUI:
${
swing_htag
:0:10
}
\"
;|"
ReleaseInfo.java
sed
-i
-e
's|\(public *static *final *String *release_date *= *"\)[^"]*";|\1'
"
${
core
#*
}
\"
;|"
ReleaseInfo.java
today
=
$(
date
+
"%Y-%m-%d"
)
sed
-e
's|\(public *static *final *String *
releas
e_date *= *"\)[^"]*";|\1'
"
$today
\"
;|"
ReleaseInfo.java
.sed
>
ReleaseInfo.java
sed
-i
-e
's|\(public *static *final *String *
packag
e_date *= *"\)[^"]*";|\1'
"
$today
\"
;|"
ReleaseInfo.java
/bin/rm ReleaseInfo.java.sed
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment