diff --git a/.fossil-settings/ignore-glob b/.fossil-settings/ignore-glob deleted file mode 100644 index 6ca0132..0000000 --- a/.fossil-settings/ignore-glob +++ /dev/null @@ -1 +0,0 @@ -mpv/watch_later diff --git a/.gitignore b/.gitignore index 7c69214..e9eb580 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ *~ -fish/fish_variables +mpv/watch_later vim/.netrwhist diff --git a/bootstrap.sh b/bootstrap.sh deleted file mode 100755 index 6b7e025..0000000 --- a/bootstrap.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# -# This script bootstraps the configs repo on a machine that has no Fossil -# installed while verifying everything against embedded hashes. The idea is to -# have a single script that needs to be copied to the target machine and then -# bootstraps everything in a trusted way. -# - -set -e -fossil_version="2.24" -fossil_sha512="7fc7de7d947b0946866df38c6cb2215f6452d31903cae6470bb4a692816b2803eb66ea372280256e5cd00759e4d02a0ae459de2f56f39af10e873579d53d33ee" -config_checkin="2eb2ee80f62086ec2644141df14caaa6f6f2427119c99d862fabc3bd18fa197f" - -download_and_verify() { - curl "$2" >"$1" - hash="$(openssl sha512 "$1" | cut -d' ' -f 2)" - - echo "Hash for $1:" - echo " Expected: $3" - echo " Got: $hash" - - if test x"$hash" = x"$3"; then - echo "Hash matches!" - else - echo "Hash doesn't match!" - exit 1 - fi -} - -download_and_verify "fossil-src-$fossil_version.tar.gz" "https://fossil-scm.org/home/tarball/version-$fossil_version/fossil-src-$fossil_version.tar.gz" "$fossil_sha512" - -gunzip -c "fossil-src-$fossil_version.tar.gz" | tar xf - -cd "fossil-src-$fossil_version" -./configure --prefix="$HOME/.local" -if which gmake >/dev/null 2>&1; then - gmake - gmake install -else - make - make install -fi -cd .. - -rm -fr "fossil-src-$fossil_version" "fossil-src-$fossil_version.tar.gz" - -export PATH="$HOME/.local/bin:$PATH" - -mkdir -p "$HOME/Devel/configs" -cd "$HOME/Devel/configs" -fossil clone https://fl.nil.im/configs configs.fossil -fossil open configs.fossil -fossil up "$config_checkin" -./setup.sh - -cd "$HOME" -echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >>.zshenv -exec zsh -l