From 839bb32bfdbff03233d8fdec2d4af2a1d55cc6b1 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 28 Jul 2015 12:47:28 -0400 Subject: [PATCH] Add makefile to provide an interface for various commands. Signed-off-by: Charles --- Makefile | 15 +++++++++++++++ make_scripts/build_dist.bash | 12 ++++++++++++ make_scripts/clean.bash | 3 +++ make_scripts/moof.bash | 3 +++ make_virtualenv.bash => make_scripts/venv.bash | 0 5 files changed, 33 insertions(+) create mode 100644 Makefile create mode 100644 make_scripts/build_dist.bash create mode 100755 make_scripts/clean.bash create mode 100755 make_scripts/moof.bash rename make_virtualenv.bash => make_scripts/venv.bash (100%) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45b48f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ + +SCRIPT_DIR ?= "make_scripts" + +# Removes development/build directories that accumulate over time. +clean: + @$(SCRIPT_DIR)/clean.bash + +moof: + @$(SCRIPT_DIR)/moof.bash + +# Creates virtual environments for development using the Python executables in $ENV_LIST. +# Existing environments are recreated. +venv: + @$(SCRIPT_DIR)/venv.bash + diff --git a/make_scripts/build_dist.bash b/make_scripts/build_dist.bash new file mode 100644 index 0000000..618a792 --- /dev/null +++ b/make_scripts/build_dist.bash @@ -0,0 +1,12 @@ +#! /bin/bash + + +#do this inside my dev venv +python2.7.venv/bin/python setup.py sdist +python2.7.venv.venv/bin/python setup.py bdist_wheel +rm -rf python2.7-sdist.venv + +virtualenv python2.7-sdist.venv +python2.7-sdist.venv/bin/pip install dist/pygments-xojo-0.0.0.tar.gz +#check import and version. +#python2.7-sdist.venv/bin/python -c 'from pygments_xojo import __version__;print(__version__)' \ No newline at end of file diff --git a/make_scripts/clean.bash b/make_scripts/clean.bash new file mode 100755 index 0000000..cac06fc --- /dev/null +++ b/make_scripts/clean.bash @@ -0,0 +1,3 @@ +#! /bin/bash + +rm -rf *.venv \ No newline at end of file diff --git a/make_scripts/moof.bash b/make_scripts/moof.bash new file mode 100755 index 0000000..ff5c5ec --- /dev/null +++ b/make_scripts/moof.bash @@ -0,0 +1,3 @@ +#! /bin/bash + +echo "moof" \ No newline at end of file diff --git a/make_virtualenv.bash b/make_scripts/venv.bash similarity index 100% rename from make_virtualenv.bash rename to make_scripts/venv.bash