Skip to content

Commit 6e490c5

Browse files
committed
added gitignore and also now have the version # set in the script
1 parent 8f25a5a commit 6e490c5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
shasta_wrapper.spec
2+
shasta_wrapper.tar.gz
3+
tmp/

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NAME = shasta_wrapper
22
CONFDIR = /etc
33
LIBDIR = /usr/share/shasta_wrapper/lib
44
SBINDIR = /usr/sbin
5-
VERSION = 0.5.0
5+
VERSION = 0.3.0
66
RELEASE = 0.1
77

88
SOURCE = src
@@ -53,3 +53,5 @@ install: all
5353
cp -ar "$(SOURCE_SBIN)/"* "$(DESTDIR)$(SBINDIR)/"
5454
cp -ar "$(SOURCE_LIB)/"* "$(DESTDIR)$(LIBDIR)/"
5555
sed -i 's|%LIBDIR%|$(LIBDIR)|g' "$(DESTDIR)$(SBINDIR)/shasta"
56+
sed -i 's|%VERSION%|$(VERSION)|g' "$(DESTDIR)$(SBINDIR)/shasta"
57+
sed -i 's|%RELEASE%|$(RELEASE)|g' "$(DESTDIR)$(SBINDIR)/shasta"

src/sbin/shasta

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
VERSION="0.2.0"
2+
VERSION="%VERSION%-%RELEASE%"
33

44
for file in %LIBDIR%/*; do
55
source $file

0 commit comments

Comments
 (0)