Initial build.

This commit is contained in:
dcooperdalrymple
2024-06-06 13:07:22 -05:00
commit 544cc6aa9a
24 changed files with 3419 additions and 0 deletions

38
Makefile Normal file
View File

@@ -0,0 +1,38 @@
PACKAGE = ogre-schema
COMPOSER = composer
all: $(PACKAGE).zip
$(PACKAGE).zip: clean composer dir copy zip
composer:
$(COMPOSER) update
dir:
mkdir ./$(PACKAGE)
copy:
cp -RT ./acf-json ./$(PACKAGE)/acf-json
cp -RT ./data ./$(PACKAGE)/data
cp -RT ./includes ./$(PACKAGE)/includes
cp -RT ./lang ./$(PACKAGE)/lang
cp -RT ./lib ./$(PACKAGE)/lib
cp -RT ./vendor ./$(PACKAGE)/vendor
cp -f ./* ./$(PACKAGE) || true
rm ./$(PACKAGE)/composer.json
rm ./$(PACKAGE)/composer.lock
rm ./$(PACKAGE)/Makefile
rm ./$(PACKAGE)/$(PACKAGE).zip || true
zip:
zip -r ./$(PACKAGE).zip ./$(PACKAGE)
rm -r ./$(PACKAGE) || true
clean:
rm -r ./$(PACKAGE) || true
rm ./$(PACKAGE).zip || true
for file in $(SASS_SCSS) ; do \
rm ./assets/css/$${file}.css || true ; \
done