feat: makefile with packaging functionality
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
pkgs/
|
18
Makefile
Normal file
18
Makefile
Normal 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
16
scripts/package.sh
Normal 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
|
Reference in New Issue
Block a user