<commit_before>#
#  Package Makefile for KeychainMinder
#  Requires TheLuggage (github.com/unixorn/luggage) to be installed.
#

LUGGAGE:=/usr/local/share/luggage/luggage.make
include ${LUGGAGE}

TITLE:=KeychainMinder
REVERSE_DOMAIN:=com.google.corp

PACKAGE_VERSION:=1.0

PAYLOAD:=pack-SecurityAgentPlugin-KeychainMinder.bundle \
				 pack-Library-LaunchAgents-com.google.corp.keychainminder.plist \
				 pack-script-postinstall

KeychainMinder.bundle:
	@cd .. && xcodebuild
	@cp -R ../build/Release/KeychainMinder.bundle .

l_Library_Security: l_Library
	@sudo mkdir -p ${WORK_D}/Library/Security
	@sudo chown root:admin ${WORK_D}/Library/Security
	@sudo chmod 755 ${WORK_D}/Library/Security

l_Library_Security_SecurityAgentPlugins: l_Library_Security
	@sudo mkdir -p ${WORK_D}/Library/Security/SecurityAgentPlugins
	@sudo chown root:admin ${WORK_D}/Library/Security/SecurityAgentPlugins
	@sudo chmod 755 ${WORK_D}/Library/Security/SecurityAgentPlugins

pack-SecurityAgentPlugin-%: % l_Library_Security_SecurityAgentPlugins
	@sudo ${DITTO} --noqtn "${<}" ${WORK_D}/Library/Security/SecurityAgentPlugins/"${<}"
	@sudo chown -R root:wheel ${WORK_D}/Library/Security/SecurityAgentPlugins/"${<}"
	@sudo chmod 755 ${WORK_D}/Library/Security/SecurityAgentPlugins/"${<}"

clean: myclean

myclean:
	rm -rf KeychainMinder.bundle
<commit_msg>[KeychainMinder] Update makefile to auto-generate version<commit_after>#
#  Package Makefile for KeychainMinder
#  Requires TheLuggage (github.com/unixorn/luggage) to be installed.
#

LUGGAGE:=/usr/local/share/luggage/luggage.make
include ${LUGGAGE}

TITLE:=KeychainMinder
REVERSE_DOMAIN:=com.google.corp

PACKAGE_VERSION:=$(shell defaults read $$PWD/../KeychainMinder/Info.plist CFBundleVersion)

PAYLOAD:=pack-SecurityAgentPlugin-KeychainMinder.bundle \
				 pack-Library-LaunchAgents-com.google.corp.keychainminder.plist \
				 pack-script-postinstall

KeychainMinder.bundle:
	@cd .. && xcodebuild
	@cp -R ../build/Release/KeychainMinder.bundle .

l_Library_Security: l_Library
	@sudo mkdir -p ${WORK_D}/Library/Security
	@sudo chown root:admin ${WORK_D}/Library/Security
	@sudo chmod 755 ${WORK_D}/Library/Security

l_Library_Security_SecurityAgentPlugins: l_Library_Security
	@sudo mkdir -p ${WORK_D}/Library/Security/SecurityAgentPlugins
	@sudo chown root:admin ${WORK_D}/Library/Security/SecurityAgentPlugins
	@sudo chmod 755 ${WORK_D}/Library/Security/SecurityAgentPlugins

pack-SecurityAgentPlugin-%: % l_Library_Security_SecurityAgentPlugins
	@sudo ${DITTO} --noqtn "${<}" ${WORK_D}/Library/Security/SecurityAgentPlugins/"${<}"
	@sudo chown -R root:wheel ${WORK_D}/Library/Security/SecurityAgentPlugins/"${<}"
	@sudo chmod 755 ${WORK_D}/Library/Security/SecurityAgentPlugins/"${<}"

clean: myclean

myclean:
	rm -rf KeychainMinder.bundle

{'fraction_non_alphanumeric': 0.1297627606038821, 'fraction_numerical': 0.007189072609633357, 'mean_word_length': 5.922885572139304, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3722069', 'n_tokens_mistral': 1030, 'n_tokens_neox': 958, 'n_words': 159}