summaryrefslogtreecommitdiff
path: root/bin/insinuate-dotfiles
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-01-27 12:03:46 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-01-27 13:03:18 -0700
commitd873a7f42d0a50404cc973079275591ccd5cd028 (patch)
tree2c7d8a79c13f83f47a9d3427d52934ba45f6d123 /bin/insinuate-dotfiles
parent6ae1bee45f6f893a8c5fdb196ab1a45f31751496 (diff)
downloaddotfiles-d873a7f42d0a50404cc973079275591ccd5cd028.tar.gz
reimplement insinuate-dotfiles using Rex
Diffstat (limited to 'bin/insinuate-dotfiles')
-rwxr-xr-xbin/insinuate-dotfiles55
1 files changed, 0 insertions, 55 deletions
diff --git a/bin/insinuate-dotfiles b/bin/insinuate-dotfiles
deleted file mode 100755
index e6a0947f..00000000
--- a/bin/insinuate-dotfiles
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-
-# insinuate-dotfiles -- try to get my dotfiles onto a host, securely
-
-# Copyright (C) 2017-2019 Sean Whitton
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or (at
-# your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-
-# Intended for machines on which I don't have root -- otherwise I'd
-# just use propellor. Possible additional functionality would be to
-# do an update of what's already there, but this will be much slower
-# over sshfs than the following, which should copy files in just one
-# direction
-
-set -e
-
-. $HOME/.shenv
-
-# assume connection sharing is set up in ~/.ssh/config
-ssh -fN "$1"
-
-if ssh "$1" "test -d src/dotfiles"; then
- echo >&2 "src/dotfiles exists"
- exit 1
-fi
-ssh "$1" "mkdir -p src/dotfiles"
-
-temp="$(mktemp -d -p $HOME/tmp insinuate.XXX)"
-git clone --no-hardlinks --depth 1 -o local -b master \
- "file://$HOME/src/dotfiles" "$temp"
-( cd "$temp" && git remote rm local && rm -r .git/refs/remotes/local )
-tar -C"$temp/.." -zcf - "$(basename $temp)" \
- | ssh "$1" 'tar --strip-components=1 -Csrc/dotfiles -zxf -'
-rm -rf "$temp"
-
-# copy my gpg key over there so I can use `mr up` to update dotfiles
-if ssh "$1" which gpg >/dev/null; then
- gpg --export-options export-minimal --export spwhitton@spwhitton.name \
- | ssh "$1" gpg --import
-fi
-# stow dotfiles into $HOME
-ssh "$1" 'sh src/dotfiles/bin/bstraph.sh'