feat: makefile with packaging functionality

This commit is contained in:
Pocco81
2022-01-12 13:06:42 -05:00
parent a6fa62cfca
commit 3b6df66e3b
3 changed files with 35 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
pkgs/

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
LOG_INFO=$(shell date +"%H:%M:%S") \e[0;34mINFO\e[0m
LOG_ERROR=$(shell date +"%H:%M:%S") \e[1;31mERROR\e[0m
LOG_WARNING=$(shell date +"%H:%M:%S") \e[0;33mWARNING\e[0m
LOG_SUCCESS=$(shell date +"%H:%M:%S") \e[0;32mSUCCESS\e[0m
.DEFAULT_GOAL := install
ROOT_DIR=$(shell git rev-parse --show-toplevel)
dest=$(ROOT_DIR)/pkgs
quiet=false
install:
@echo -e "$(LOG_INFO) Under dev 👷🛑..."
package:
@echo -e "$(LOG_INFO) Packaging all dark Catppuccin accents 📦..."
@echo $(dest)
# @mkdir -p $(dest)
# @./scripts/package.sh $(dest) $(quiet)

16
scripts/package.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
dest=$1
quiet=$2
[[ $quiet == "true" ]] && {
quiet="-q"
} || quiet=""
./install.sh --dest ${dest} --theme all --size compact --color dark
for file in *; do
echo -e " + \e[0;32mPackaging ${file}\e[0m"
# zip -r ${quiet} ${file}.zip ${file}
# rm -r "${file}"
done