Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
122 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
NAME=nvdsync | ||
VERSION=$(shell awk '/define version/ { print $$NF }' rpm/${NAME}.spec) | ||
MANPAGES=${NAME}.1 | ||
BUILDHOST="opsnest1" | ||
|
||
help: | ||
@echo "The following targets are available:" | ||
@echo "build build the RPM ${NAME}-${VERSION} on ${BUILDHOST}" | ||
@echo "clean remove any interim files" | ||
@echo "help print this help" | ||
@echo "rpm build an RPM" | ||
|
||
build: | ||
@rsync -e ssh -avz . ${BUILDHOST}:${NAME}/. | ||
@ssh ${BUILDHOST} "cd ${NAME} && make rpm" | ||
@scp ${BUILDHOST}:redhat/RPMS/noarch/${NAME}-${VERSION}*rpm /tmp/ | ||
|
||
rpm: man-compress | ||
cd rpm && sh mkrpm.sh ${NAME}.spec | ||
|
||
man-compress: | ||
@for f in ${MANPAGES}; do \ | ||
gzip -9 doc/$${f} -c > doc/$${f}.gz; \ | ||
done; | ||
|
||
clean: | ||
rm -fr doc/*.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters