Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioping
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ioping
Commits
2fcaaebb
Commit
2fcaaebb
authored
Sep 04, 2011
by
Konstantin Khlebnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ioping: rework version control
Signed-off-by:
Konstantin Khlebnikov
<
koct9i@gmail.com
>
parent
e24ba533
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
Makefile
Makefile
+7
-6
ioping.spec
ioping.spec
+1
-1
No files found.
Makefile
View file @
2fcaaebb
...
@@ -11,11 +11,14 @@ MANS=ioping.1
...
@@ -11,11 +11,14 @@ MANS=ioping.1
SPEC
=
ioping.spec
SPEC
=
ioping.spec
PACKAGE
=
ioping
PACKAGE
=
ioping
VERSION
=
$(
shell
test
-d
.git
&&
git describe
--tags
--dirty
=
+
||
awk
'/^Version:/{print $$2
}
'
$(SPEC)
)
VERSION
=
$(
shell
cat
version
)
DISTDIR
=
$(PACKAGE)
-
$(VERSION)
DISTDIR
=
$(PACKAGE)
-
$(VERSION)
DISTFILES
=
$(SRCS)
$(MANS)
$(SPEC)
Makefile
DISTFILES
=
$(SRCS)
$(MANS)
$(SPEC)
Makefile
all
:
$(BINS)
all
:
version $(BINS)
version
:
$(DISTFILES)
test
!
-d
.git
||
git describe
--tags
--dirty
=
+ |
sed
's/^v//;s/-/./g'
>
$@
clean
:
clean
:
$(RM)
-f
$(OBJS)
$(BINS)
$(RM)
-f
$(OBJS)
$(BINS)
...
@@ -32,9 +35,7 @@ install: $(BINS) $(MANS)
...
@@ -32,9 +35,7 @@ install: $(BINS) $(MANS)
ioping
:
$(OBJS)
ioping
:
$(OBJS)
$(CC)
-o
$@
$^
$(CFLAGS)
$(LDFLAGS)
$(CC)
-o
$@
$^
$(CFLAGS)
$(LDFLAGS)
dist
:
$(DISTDIR).tar.gz
dist
:
version $(DISTFILES)
tar
-cz
--transform
=
's,^,
$(DISTDIR)
/,S'
$^
-f
$(DISTDIR)
.tar.gz
$(DISTDIR).tar.gz
:
$(DISTFILES)
tar
-cz
--transform
=
's,^,
$(DISTDIR)
/,S'
$(DISTFILES)
-f
$(DISTDIR)
.tar.gz
.PHONY
:
all clean install dist
.PHONY
:
all clean install dist
ioping.spec
View file @
2fcaaebb
Name: ioping
Name: ioping
Version:
0.6
Version:
%(cat version)
Release: 1%{?dist}
Release: 1%{?dist}
Summary: simple disk I/O latency monitoring tool
Summary: simple disk I/O latency monitoring tool
...
...
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