Adding Admin and Shared scripts
This commit is contained in:
22
Shared/Makefile
Normal file
22
Shared/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
LIST=bell bigorlittle compare-directories compress-all diff-args expand-all logged-shell standardize-folder whatismyip
|
||||
LOCATION=/usr/local/bin
|
||||
PERMISSION=0755
|
||||
compile:
|
||||
@echo Nothing to compile.
|
||||
|
||||
install: compile
|
||||
for i in ${LIST}; do cp ./$$i ${LOCATION}
|
||||
make checkperm
|
||||
|
||||
reverse:
|
||||
for i in ${LIST}; do cp ${LOCATION}/$$i .; done
|
||||
|
||||
test: ${LIST}
|
||||
for i in ${LIST}; do [ "$$(grep -c '#/bin/bash' $$i)" -ne 1 ]; done
|
||||
|
||||
checkperm:
|
||||
for i in ${LIST}; do chown root:root ${LOCATION}/$$i; chmod ${PERMISSION} ${LOCATION}/$$i; done
|
||||
|
||||
clean:
|
||||
@echo Nothing to do.
|
||||
|
Reference in New Issue
Block a user