<commit_before># -*- mode: makefile -*-
#
# Copyright (c) 2013, Joyent, Inc. All rights reserved.
#

#
# Files
#
DOC_FILES = index.restdown

BASH_FILES = \
    $(shell find scripts -name '*.sh') \
    $(shell find tools -depth -name "*.d" -prune -o -name "\.*" -prune -o \
        -name tools -prune -o -print) \
    bin/upgrade.sh \
    bin/upgrade_hooks.sh \
    scripts/chk_agents \
    scripts/update_agents

JS_FILES = $(shell find scripts -name '*.js')
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)

JSL_CONF_NODE = buildtools/jsl.node.conf
JSSTYLE_FLAGS = -o indent=4,doxygen,unparenthesized-return=0


#
# Included definitions
#
include ./buildtools/mk/Makefile.defs


#
# usb-headnode-specific targets
#

.PHONY: all coal usb boot tar upgrade sandwich
all: coal

coal:
	bin/build-image coal
usb:
	bin/build-image usb
boot:
	bin/build-image tar
tar: boot
upgrade:
	bin/build-upgrade-image $(shell ls boot-*.tgz | sort | tail -1)
sandwich:
	@open http://xkcd.com/149/

.PHONY: coal-and-open
coal-and-open: coal
	open $(shell ls -1td coal-*.vmwarevm | sort | head -1)

.PHONY: update-tools-modules
update-tools-modules:
	./bin/mk-sdc-clients-light.sh da0a1080feb tools-modules/sdc-clients

.PHONY: incr-upgrade
incr-upgrade:
	@echo building incr-upgrade-$(STAMP).tgz
	rm -rf build/incr-upgrade
	mkdir -p build
	cp -r $(TOP)/incr-upgrade-scripts build/incr-upgrade-$(STAMP)
	cp -r \<commit_msg>fix this to actually get the latest coal build vm<commit_after># -*- mode: makefile -*-
#
# Copyright (c) 2013, Joyent, Inc. All rights reserved.
#

#
# Files
#
DOC_FILES = index.restdown

BASH_FILES = \
    $(shell find scripts -name '*.sh') \
    $(shell find tools -depth -name "*.d" -prune -o -name "\.*" -prune -o \
        -name tools -prune -o -print) \
    bin/upgrade.sh \
    bin/upgrade_hooks.sh \
    scripts/chk_agents \
    scripts/update_agents

JS_FILES = $(shell find scripts -name '*.js')
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)

JSL_CONF_NODE = buildtools/jsl.node.conf
JSSTYLE_FLAGS = -o indent=4,doxygen,unparenthesized-return=0


#
# Included definitions
#
include ./buildtools/mk/Makefile.defs


#
# usb-headnode-specific targets
#

.PHONY: all coal usb boot tar upgrade sandwich
all: coal

coal:
	bin/build-image coal
usb:
	bin/build-image usb
boot:
	bin/build-image tar
tar: boot
upgrade:
	bin/build-upgrade-image $(shell ls boot-*.tgz | sort | tail -1)
sandwich:
	@open http://xkcd.com/149/

.PHONY: coal-and-open
coal-and-open: coal
	open $(shell grep Creating $(shell ls -1t log/build.log.coal.* | head -1) | cut -d' ' -f3 | cut -d/ -f1)*.vmwarevm

.PHONY: update-tools-modules
update-tools-modules:
	./bin/mk-sdc-clients-light.sh da0a1080feb tools-modules/sdc-clients

.PHONY: incr-upgrade
incr-upgrade:
	@echo building incr-upgrade-$(STAMP).tgz
	rm -rf build/incr-upgrade
	mkdir -p build
	cp -r $(TOP)/incr-upgrade-scripts build/incr-upgrade-$(STAMP)
	cp -r \
{'fraction_non_alphanumeric': 0.14917695473251028, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 3.239825581395349, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5403610', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1122, 'n_words': 275}