Compare commits
No commits in common. "main" and "0.0.2" have entirely different histories.
11 changed files with 16 additions and 14 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
BINDIR ?= $(PREFIX)/bin
|
||||||
|
SRCDIR ?= .
|
||||||
|
|
||||||
|
SCRIPTS := $(wildcard $(SRCDIR)/*.sh)
|
||||||
|
|
||||||
|
install:
|
||||||
|
@mkdir -p $(BINDIR)
|
||||||
|
for f in $(SCRIPTS); do \
|
||||||
|
install -m 755 "$$f" "$(BINDIR)/$$(basename $$f .sh)"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
for f in $(SCRIPTS); do \
|
||||||
|
rm -f "$(BINDIR)/$$(basename $$f .sh)"; \
|
||||||
|
done
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Thing
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
[ "$(cat /sys/class/power_supply/ADP*/online 2>/dev/null)" = "1" ] && echo "ADP Online" || echo "ADP Offline; using battery"
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
DATE=$(date -I)
|
|
||||||
REPORT_PATH=$HOME/ereport-$(date -I).txt
|
|
||||||
if [[ -f "$REPORT_PATH" ]]; then
|
|
||||||
echo "Today's report already exists at $REPORT_PATH!"
|
|
||||||
else
|
|
||||||
echo "Syncing repositories..."
|
|
||||||
# sudo emerge --sync >> "$REPORT_PATH"
|
|
||||||
echo "Writing update report..."
|
|
||||||
sudo emerge --update --newuse --deep @world --pretend >> "$REPORT_PATH"
|
|
||||||
fi
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue