X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Femacs%2Fmake-plugin.sh;h=2508377d2df5586ba373c83fcdfc1aa4e5129efc;hb=318de5de9765afb75522ad68da5f5a0371480098;hp=de5eb04ff941dcd9c13236b146a6bbda39437c1b;hpb=8d0f2f0031589513833ab726a7bad5d9e19ff898;p=vpp.git diff --git a/extras/emacs/make-plugin.sh b/extras/emacs/make-plugin.sh index de5eb04ff94..2508377d2df 100755 --- a/extras/emacs/make-plugin.sh +++ b/extras/emacs/make-plugin.sh @@ -13,6 +13,17 @@ ;;; See the License for the specific language governing permissions and ;;; limitations under the License. -(load-file "./all-skel.el") -(make-plugin) -(save-some-buffers t) +(setq start-dir default-directory) + +(if (string-match "/src/plugins" start-dir) + (progn (setq cd-args (concat start-dir "../../extras/emacs")) + (setq default-directory cd-args) + (load-file "./all-skel.el") + (setq default-directory start-dir) + (make-plugin) + (save-some-buffers t) + (message "OK...")) + (message "Please run this script from .../src/plugins")) + + +