dot

packages and services management
Log | Files | Refs | README

commit 54d8d927e9f60bdb8198b9136dcd2603a88ef7e9
parent a03157dcaac791a0c33637007fdb93632da5ba46
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  8 Apr 2018 21:59:05 +0200

what else than a make file to make files?

Diffstat:
AMakefile | 32++++++++++++++++++++++++++++++++
Dconfigure | 28----------------------------
Mgit/repos | 4++--
Mprofile | 2+-
4 files changed, 35 insertions(+), 31 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,32 @@ +.PHONY: all +all: dirs config + +.PHONY: dirs +dirs: + mkdir -p ${HOME}/run + mkdir -p ${HOME}/var/git + mkdir -p ${HOME}/var/iso + mkdir -p ${HOME}/var/mail + mkdir -p ${HOME}/var/pub + mkdir -p ${HOME}/var/torrent + +.PHONY: config +config: + mkdir -p ${HOME}/.config/enchive + ln -fs /mnt/key/enchive.pub ${HOME}/.config/enchive/enchive.pub + ln -fs /mnt/key/enchive.sec ${HOME}/.config/enchive/enchive.sec + + mkdir -p ${HOME}/.ssh + cp ${PWD}/ssh/authorized_keys ${HOME}/.ssh/authorized_keys + ln -fs ${PWD}/ssh/config ${HOME}/.ssh/config + + ln -fs ${PWD}/profile ${HOME}/.profile + ln -fs ${PWD}/mpoprc ${HOME}/.mpoprc + ln -fs ${PWD}/msmtprc ${HOME}/.msmtprc + ln -fs ${PWD}/xinitrc ${HOME}/.xinitrc + ln -fs ${PWD}/git ${HOME}/.config/git + +.PHONY: git +git: + mkdir -p ${HOME}/var/git + grep -v ^# git/repos | (cd ${HOME}/var/git && xargs -n 1 git clone --bare) diff --git a/configure b/configure @@ -1,28 +0,0 @@ -#!/bin/sh -ex - -cd "$(dirname "$0")" - -mkdir -p "$HOME/run" -mkdir -p "$HOME/var/http" -mkdir -p "$HOME/var/git" -mkdir -p "$HOME/var/gopher" -mkdir -p "$HOME/var/torrent" -mkdir -p "$HOME/var/mail" -mkdir -p "$HOME/var/iso" - -mkdir -p "$HOME/.config/enchive" -ln -fs /mnt/key/enchive.pub "$HOME/.config/enchive/enchive.pub" -ln -fs /mnt/key/enchive.sec "$HOME/.config/enchive/enchive.sec" - -mkdir -p "$HOME/.ssh" -cp "$PWD/ssh/authorized_keys" "$HOME/.ssh/authorized_keys" -ln -fs "$PWD/ssh/config "$HOME/.ssh/config" - -ln -fs "$PWD/profile" "$HOME/.profile" -ln -fs "$PWD/mpoprc" "$HOME/.mpoprc" -ln -fs "$PWD/msmtprc" "$HOME/.msmtprc" -ln -fs "$PWD/xinitrc" "$HOME/.xinitrc" -ln -fs "$PWD/git" "$HOME/.config/git" - -mkdir -p "$HOME/var/git" -(cd "$HOME/var/git" && xargs -n 1 git clone --bare) <git/repos diff --git a/git/repos b/git/repos @@ -12,9 +12,9 @@ git://josuah.net/ff2txt.git git://josuah.net/fungus-pathogen.git git://josuah.net/iomenu.git git://josuah.net/josuah.net.git -git://josuah.net/mail.git +#git://josuah.net/mail.git git://josuah.net/miniwi.git -git://josuah.net/music.git +#git://josuah.net/music.git git://josuah.net/ploot.git git://josuah.net/pot.git git://josuah.net/util.git diff --git a/profile b/profile @@ -45,7 +45,7 @@ export MBLAZE="$HOME/etc/mblaze" export TWT_CONF="$HOME/etc/twt" export TWT_PATH="$HOME/var/twt" -export TWT_FEED="$HOME/var/srv/twt/josuah" +export TWT_FEED="$HOME/git/josuah.net/twtxt.txt" export SSH_AUTH_SOCK="/tmp/ssh-agent"