Skip to content

Commit

Permalink
Expose version information
Browse files Browse the repository at this point in the history
Profiles now have access to it.
  • Loading branch information
joukewitteveen committed Jun 4, 2013
1 parent 6e48f6b commit c3f16e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
1 change: 1 addition & 0 deletions src/lib/globals
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NETCTL_VERSION="notpackaged"
PROFILE_DIR="/etc/netctl"
SUBR_DIR="/usr/lib/network"
CONN_DIR="$SUBR_DIR/connections"
Expand Down
2 changes: 0 additions & 2 deletions src/netctl.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

. /usr/lib/network/globals

NETCTL_VERSION=notpackaged


usage() {
cat << END
Expand Down

0 comments on commit c3f16e6

Please sign in to comment.