diff --git a/.gitignore b/.gitignore index fbd73a08..a828d84c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ src/* !src/mig *.rpm *.deb +packages/ +tmp/ diff --git a/Makefile b/Makefile index fe8889ab..4820d608 100644 --- a/Makefile +++ b/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 diff --git a/inotify_make.sh b/inotify_make.sh index 5805b39b..04e63347 100755 --- a/inotify_make.sh +++ b/inotify_make.sh @@ -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