File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ NDS_OBJS=src/auth.o src/client_list.o src/commandline.o src/conf.o \
12
12
src/debug.o src/firewall.o src/fw_iptables.o src/gateway.o src/http_microhttpd.o src/http_microhttpd_utils.o \
13
13
src/ndsctl_thread.o src/safe.o src/tc.o src/util.o src/template.o
14
14
15
- .PHONY : all clean install checkastyle fixstyle
15
+ .PHONY : all clean install checkastyle fixstyle deb
16
16
17
17
all : nodogsplash ndsctl
18
18
@@ -70,10 +70,10 @@ fixstyle: checkastyle
70
70
echo " \033[1;33mPrevious files have been corrected\033[00m" ; else \
71
71
echo " \033[0;32mAll files are ok\033[00m" ; fi
72
72
73
- DEBVERSION =$(shell dpkg-parsechangelog | grep ^Version |cut -f2 -d\ | sed -e 's/-[0-9] * $$// ' )
73
+ DEBVERSION =$(shell dpkg-parsechangelog | awk -F'[ -]' '/^Version/{print($$2) ; exit;} ' )
74
74
deb : clean
75
75
mkdir -p dist/nodogsplash-$(DEBVERSION )
76
76
tar --exclude dist --exclude " .git*" -cf - . | (cd dist/nodogsplash-$( DEBVERSION) && tar xf -)
77
- cd dist && tar cjf nodogsplash_$(DEBVERSION ) .orig.tar.bz2 nodogsplash-$(DEBVERSION )
78
- cd dist/nodogsplash-$(DEBVERSION ) && dpkg-buildpackage -us -uc
77
+ cd dist && tar cjf nodogsplash_$(DEBVERSION ) .orig.tar.bz2 nodogsplash-$(DEBVERSION ) && cd -
78
+ cd dist/nodogsplash-$(DEBVERSION ) && dpkg-buildpackage -us -uc && cd -
79
79
rm -rf dist/nodogsplash-$(DEBVERSION )
You can’t perform that action at this time.
0 commit comments