зеркало из https://github.com/mozilla/mig.git
[doc] gitignore & makefile
This commit is contained in:
Родитель
8132129386
Коммит
78b391d580
|
@ -15,3 +15,5 @@ src/*
|
|||
!src/mig
|
||||
*.rpm
|
||||
*.deb
|
||||
packages/
|
||||
tmp/
|
||||
|
|
1
Makefile
1
Makefile
|
@ -49,6 +49,7 @@ mig-agent:
|
|||
cp $(AGTCONF) src/mig/agent/configuration.go
|
||||
$(MKDIR) -p $(BINDIR)
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX) $(GOLDFLAGS) mig/agent
|
||||
ln -fs "$$(pwd)/$(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX)" "$$(pwd)/$(BINDIR)/mig-agent-latest"
|
||||
[ -x "$(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX)" ] && echo SUCCESS && exit 0
|
||||
|
||||
#mig-agent-all: mig-agent-386 mig-agent-amd64
|
||||
|
|
|
@ -20,6 +20,7 @@ do
|
|||
#echo NEW EVENT: $event $dir $file
|
||||
|
||||
if [[ "$dir" =~ src\/mig\/$ ]]; then
|
||||
echo
|
||||
make mig-agent && \
|
||||
make mig-action-generator && \
|
||||
make mig-action-verifier && \
|
||||
|
@ -28,18 +29,27 @@ do
|
|||
echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ agent && "$file" != "configuration.go" ]] ; then
|
||||
echo
|
||||
make mig-agent && echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ modules && "$file" != "configuration.go" ]] ; then
|
||||
echo
|
||||
make mig-agent && echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ api ]] ; then
|
||||
echo
|
||||
make mig-api && echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ generator ]] ; then
|
||||
echo
|
||||
make mig-action-generator && echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ verifier ]] ; then
|
||||
echo
|
||||
make mig-action-verifier && echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ pgp ]] ; then
|
||||
echo
|
||||
make mig-agent && \
|
||||
make mig-action-generator && \
|
||||
make mig-action-verifier && \
|
||||
|
@ -47,6 +57,7 @@ do
|
|||
echo success $(date +%H:%M:%S)
|
||||
|
||||
elif [[ "$dir" =~ scheduler ]] ; then
|
||||
echo
|
||||
make mig-scheduler && echo success $(date +%H:%M:%S)
|
||||
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче