Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
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
Levin Zimmermann
go-fuse
Commits
b68d8e7f
Commit
b68d8e7f
authored
Jun 19, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make version stamping work for goinstall.
parent
0866f202
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
fuse/Makefile
fuse/Makefile
+4
-3
fuse/genversion.sh
fuse/genversion.sh
+11
-0
fuse/misc.go
fuse/misc.go
+4
-1
fuse/version.go
fuse/version.go
+5
-0
No files found.
fuse/Makefile
View file @
b68d8e7f
...
@@ -26,13 +26,14 @@ GOFILES=\
...
@@ -26,13 +26,14 @@ GOFILES=\
timingfs.go
\
timingfs.go
\
timingrawfs.go
\
timingrawfs.go
\
types.go
\
types.go
\
version.go
\
version.gen.go
\
version.gen.go
\
xattr.go
\
xattr.go
\
include
$(GOROOT)/src/Make.pkg
include
$(GOROOT)/src/Make.pkg
version.gen.go
:
version.gen.go
:
FORCE
echo
"package fuse"
>
$@
sh genversion.sh
>
$@
git log
-n1
--pretty
=
format:
'const version = "%h (%cd)"'
--date
=
iso
>>
$@
FORCE
:
fuse/genversion.sh
0 → 100644
View file @
b68d8e7f
#!/bin/sh
VERSION
=
\"
$(
git log
-n1
--pretty
=
format:
'%h (%cd)'
--date
=
iso
)
\"
cat
<<
EOF
package fuse
func init() {
version = new(string)
*version =
${
VERSION
}
}
EOF
fuse/misc.go
View file @
b68d8e7f
...
@@ -169,7 +169,10 @@ func ioctl(fd int, cmd int, arg uintptr) (int, int) {
...
@@ -169,7 +169,10 @@ func ioctl(fd int, cmd int, arg uintptr) (int, int) {
}
}
func
Version
()
string
{
func
Version
()
string
{
return
version
if
version
!=
nil
{
return
*
version
}
return
"unknown"
}
}
func
ReverseJoin
(
rev_components
[]
string
,
sep
string
)
string
{
func
ReverseJoin
(
rev_components
[]
string
,
sep
string
)
string
{
...
...
fuse/version.go
0 → 100644
View file @
b68d8e7f
package
fuse
// Autogenerated .go file can set this to a version string in its
// init() file.
var
version
*
string
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