Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
netctl
Commits
c3f16e68
Commit
c3f16e68
authored
Jun 04, 2013
by
Jouke Witteveen
Browse files
Expose version information
Profiles now have access to it.
parent
6e48f6b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
c3f16e68
...
...
@@ -37,12 +37,12 @@ install:
tarball
:
netctl-$(VERSION).tar.xz
netctl-$(VERSION).tar.xz
:
$(MAKE)
-B
-C
docs
cp
src/
netctl.in
{
,.orig
}
sed
-i
"s|NETCTL_VERSION=.*|NETCTL_VERSION=
$(VERSION)
|"
src/
netctl.in
cp
src/
lib/globals
{
,.orig
}
sed
-i
"s|NETCTL_VERSION=.*|NETCTL_VERSION=
$(VERSION)
|"
src/
lib/globals
git stash save
-q
git archive
-o
netctl-
$(VERSION)
.tar
--prefix
=
netctl-
$(VERSION)
/ stash
git stash pop
-q
mv
src/
netctl.in
{
.orig,
}
mv
src/
lib/globals
{
.orig,
}
tar
--exclude-vcs
--transform
"s|^|netctl-
$(VERSION)
/|"
--owner
=
root
--group
=
root
--mtime
=
./netctl-
$(VERSION)
.tar
-rf
netctl-
$(VERSION)
.tar docs/
*
.[1-8]
xz netctl-
$(VERSION)
.tar
gpg
--detach-sign
$@
...
...
src/lib/globals
View file @
c3f16e68
NETCTL_VERSION
=
"notpackaged"
PROFILE_DIR
=
"/etc/netctl"
SUBR_DIR
=
"/usr/lib/network"
CONN_DIR
=
"
$SUBR_DIR
/connections"
...
...
src/netctl.in
View file @
c3f16e68
...
...
@@ -2,8 +2,6 @@
.
/usr/lib/network/globals
NETCTL_VERSION
=
notpackaged
usage
()
{
cat
<<
END
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment