Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
verimag
synchrone
lutils
Commits
06235a54
Commit
06235a54
authored
9 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
Add a Makefile.dev for developpers and make sure the version number is always correct.
parent
4f6f011b
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+3
-26
3 additions, 26 deletions
Makefile
Makefile.dev
+77
-0
77 additions, 0 deletions
Makefile.dev
Makefile.version
+0
-1
0 additions, 1 deletion
Makefile.version
doc/version.tex
+2
-2
2 additions, 2 deletions
doc/version.tex
src/META
+2
-2
2 additions, 2 deletions
src/META
with
84 additions
and
31 deletions
Makefile
+
3
−
26
View file @
06235a54
...
...
@@ -36,35 +36,12 @@ distclean:
ocaml setup.ml
-distclean
rm
-rf
_build/src
###############################
# tags
OTAGS
=
otags
# otags don't manage to parse gnuplotRif.ml
NO_TAGS
=
gnuplotRif.ml
tags
:
$(
OTAGS
)
-v
$(
shell ocamlc
-where
)
/
*
.mli
$(
shell
ls
src/
*
.ml |
grep
-v
$(
NO_TAGS
))
###############################
# opam-ing
NAME
=
lutils
PACKNAME
=
$(
NAME
)
.
$(
VERSION
)
WWW
=
/import/www/DIST-TOOLS/SYNCHRONE
HTTP
=
http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE
$(PACKNAME).tgz
:
git archive
--prefix
=
$(
PACKNAME
)
/
-o
$(
PACKNAME
)
.tgz HEAD
$(WWW)/pool/$(PACKNAME).tgz
:
$(PACKNAME).tgz
mv
$^
$@
opam
:
$(WWW)/pool/$(PACKNAME).tgz
cd
$(
WWW
)
/opam-repository/packages
&&
\
oasis2opam
$(
HTTP
)
/pool/
$(
PACKNAME
)
.tgz
&&
\
cd
..
;
opam-admin check
&&
opam-admin make
-g
# for developpers
include
./Makefile.dev
# not gitted stuff
-include
./Makefile.local
This diff is collapsed.
Click to expand it.
Makefile.dev
0 → 100644
+
77
−
0
View file @
06235a54
#######################################################################################
# Workflow:
# C=git commit ; A=git amend ; U=update_version ; O=opam pack
# to make sure the sha and the version are good, one should never
# do U and then A.
# to avoid such problems, legal trace are defined by this automata:
# 0 -C-> 1
# 1 -P-> 1
# 1 -A-> 1
# 1 -U-> 0
# to implement such a workflow, C puts a lock (state 1) and U removes it (state 0)
###############################
# a few git shortcuts
uv
:
update_version
update_version
:
rm
-f
src/lutilsVersion.ml
make src/lutilsVersion.ml
cp
_oasis _oasis.save
cat
_oasis.save |
sed
"s/^Version:.*/Version:
$(
VERSION
)
/"
>
_oasis
rm
-f
committed
make clean
&&
make
cia
:
test
-f
committed
&&
\
echo
"*** I won't commit!
\n
*** until you 'make update_version'!"
\
||
(
git commit
-a
-F
log
&&
touch
committed
)
ci
:
test
-f
committed
&&
\
echo
"*** I won't commit!
\n
*** until you 'make update_version'!"
\
||
(
git commit
-F
log
&&
touch
committed
)
amend
:
test
-f
committed
&&
git commit
-a
-F
log
--amend
###############################
# forge
push
:
git push git+ssh://
$(
USER
)
@scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/git/lutils/lutils.git
pull
:
git pull git+ssh://
$(
USER
)
@scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/git/lutils/lutils.git
#############################
# tags
OTAGS
=
otags
# otags don't manage to parse gnuplotRif.ml
NO_TAGS
=
gnuplotRif.ml
tags
:
$(
OTAGS
)
-v
$(
shell ocamlc
-where
)
/
*
.mli
$(
shell
ls
src/
*
.ml |
grep
-v
$(
NO_TAGS
))
###############################
# opam-ing
NAME
=
lutils
PACKNAME
=
$(
NAME
)
.
$(
VERSION
)
WWW
=
/import/www/DIST-TOOLS/SYNCHRONE
HTTP
=
http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE
$(PACKNAME).tgz
:
git archive
--prefix
=
$(
PACKNAME
)
/
-o
$(
PACKNAME
)
.tgz HEAD
$(WWW)/pool/$(PACKNAME).tgz
:
$(PACKNAME).tgz
mv
$^
$@
opam
:
$(WWW)/pool/$(PACKNAME).tgz
cd
$(
WWW
)
/opam-repository/packages
&&
\
oasis2opam
$(
HTTP
)
/pool/
$(
PACKNAME
)
.tgz
&&
\
cd
..
;
opam-admin check
&&
opam-admin make
-g
This diff is collapsed.
Click to expand it.
Makefile.version
+
0
−
1
View file @
06235a54
...
...
@@ -4,7 +4,6 @@ SHA:=$(shell git log -1 --pretty=format:"%h")
COMMIT_NB
:=
$(
shell git log
--pretty
=
oneline |
wc
-l
)
VERSION
:=
1.
$(
COMMIT_NB
)
...
...
This diff is collapsed.
Click to expand it.
doc/version.tex
+
2
−
2
View file @
06235a54
\newcommand
{
\version
}{
1.4
}
\newcommand
{
\sha
}{
f76bf6
1
}
\newcommand
{
\sha
}{
4f6f01
1
}
\newcommand
{
\versionname
}{
none
}
\newcommand
{
\versiondate
}{
2
8
-0
1
-16
}
\newcommand
{
\versiondate
}{
0
2-0
2
-16
}
This diff is collapsed.
Click to expand it.
src/META
+
2
−
2
View file @
06235a54
# OASIS_START
# DO NOT EDIT (digest:
dbea03afd5beab572192d8711a6cda76
)
version = "1.
0
"
# DO NOT EDIT (digest:
001f58193d137e873d0b1451c9b716bc
)
version = "1.
4
"
description = "shared by Verimag/synchronous tools (lustre, lutin, rdbg)."
requires = "unix str camlp4 num"
archive(byte) = "lutils.cma"
...
...
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