2022-11-20 20:47:27 -06:00
|
|
|
syncList = profile.d tmux.conf
|
2024-03-30 14:32:43 -05:00
|
|
|
userServiceList =
|
2019-05-06 02:04:19 -05:00
|
|
|
|
2023-10-14 12:52:00 -05:00
|
|
|
compile: ./shadowarch ${syncList} ${userServiceList} ./shadowarch.vim ./skel
|
2019-05-06 02:04:19 -05:00
|
|
|
@echo Nothing to compile
|
|
|
|
|
2022-01-18 10:49:51 -06:00
|
|
|
install: compile
|
2022-11-20 20:47:27 -06:00
|
|
|
mkdir -p ${pkgdir}/etc/
|
2023-11-29 11:18:56 -06:00
|
|
|
cp -pr ./skel ${pkgdir}/etc
|
2022-11-20 20:47:27 -06:00
|
|
|
mkdir -p ${pkgdir}/usr/lib/systemd/user
|
|
|
|
for i in ${userServiceList}; do cp "$$i" ${pkgdir}/usr/lib/systemd/user/"$$i"; done
|
2023-11-29 11:18:56 -06:00
|
|
|
mkdir -p ${pkgdir}/etc/pacman.d/hooks
|
|
|
|
mkdir -p ${pkgdir}/usr/share/vim/vimfiles/plugin/
|
2020-06-15 17:11:05 -05:00
|
|
|
cp ./shadowarch.vim ${pkgdir}/usr/share/vim/vimfiles/plugin/shadowarch.vim
|
2023-11-29 11:18:56 -06:00
|
|
|
for i in ${syncList}; do cp -r "$$i" ${pkgdir}/etc/; chmod -R a+r "${pkgdir}/etc/$$i"; done
|
2022-11-20 20:47:27 -06:00
|
|
|
if [ `uname -r | grep -c arch` -eq 1 ]; then mkdir -p ${pkgdir}/usr/share/pacman/keyrings; cp aninix.gpg ${pkgdir}/usr/share/pacman/keyrings; fi
|
2019-05-06 02:04:19 -05:00
|
|
|
|
|
|
|
checkperm: ${syncList}
|
|
|
|
printf "What is your deprivileged user? "; read user; chown -R ${user}:${user} .
|
|
|
|
chown -R root:root ${syncList}
|
|
|
|
for i in ${syncList}; do if [ -f "${i}" ]; then chmod 0644 "${i}"; elif [ -d "${i}" ]; then chmod 0755 "${i}"; fi; done
|
|
|
|
|
2022-11-20 20:47:27 -06:00
|
|
|
test:
|
2019-05-06 02:04:19 -05:00
|
|
|
bash -n shadowarch
|
2022-11-20 20:47:27 -06:00
|
|
|
bash ./shadowarch -h
|
2019-05-06 02:04:19 -05:00
|
|
|
echo Success.
|
|
|
|
|
2023-11-29 11:18:56 -06:00
|
|
|
reverse: ${syncList}
|
2019-05-06 02:04:19 -05:00
|
|
|
for i in ${syncList}; do rsync -avz ${syncList} .; done
|
2022-11-20 20:47:27 -06:00
|
|
|
for i in ${userServiceList}; do rsync -avz /usr/lib/systemd/user/${userServiceList} .; done
|
|
|
|
rsync --delete-before -avz ${pkgdir}/etc/skel ./skel
|
2019-05-06 02:04:19 -05:00
|
|
|
|
|
|
|
clean:
|
2023-11-29 11:18:56 -06:00
|
|
|
git clean -fdX
|
2019-05-06 02:04:19 -05:00
|
|
|
|
|
|
|
diff: ${syncList}
|
|
|
|
if [ -f ${httpRoot}/shadowarch ]; then diff ./shadowarch ${httpRoot}/shadowarch; echo; fi
|
|
|
|
for i in ${syncList}; do diff -rc "$$i" ./`echo $$i | rev | cut -f 1 -d '/' | rev`; echo; done
|
2022-11-20 20:47:27 -06:00
|
|
|
diff -rc ${pkgdir}/etc/skel ./skel; printf ""
|