From c9521eb0a6f024493977d9830c084f76822386f1 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 16 Oct 2013 14:22:01 +0200 Subject: [PATCH] dataindex: stripped redundant parent folders --- .profile | 1 + .scripts/dataindex | 6 +++--- .scripts/encfsw | 18 ------------------ .scripts/homeinit | 7 +++++++ 4 files changed, 11 insertions(+), 21 deletions(-) delete mode 100755 .scripts/encfsw diff --git a/.profile b/.profile index 6cf58225..a027f442 100644 --- a/.profile +++ b/.profile @@ -32,6 +32,7 @@ prependpath() appendpath "${HOME}/.launchers/" appendpath "${HOME}/.scripts/" +appendpath "${HOME}/.hackpool/" ## TeXlive TEXDIR="${TEXDIR:-/usr/local/texlive}" diff --git a/.scripts/dataindex b/.scripts/dataindex index 81d2b6a4..0cd13abf 100755 --- a/.scripts/dataindex +++ b/.scripts/dataindex @@ -5,7 +5,7 @@ DATE= _printhelp () { cat< "$OUTPUT" - echo "## $(date +%F)" >> "$OUTPUT" + (cd "$i" && find * -type f) | sort > "$OUTPUT" + # echo "## $(date +%F)" >> "$OUTPUT" done diff --git a/.scripts/encfsw b/.scripts/encfsw deleted file mode 100755 index f41cefa1..00000000 --- a/.scripts/encfsw +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -if [ $# -ne 1 ] && [ $# -ne 2 ]; then - echo "Usage: $0 ROOTDIR [MOUNTPOINT]" - exit -fi - -if [ -w "$(command -v realpath)" ]; then - echo "You need 'realpath'." - exit -fi -if [ -w "$(command -v encfs)" ]; then - echo "You need 'encfs'." - exit -fi - -MOUNTPOINT="$2" -[ $# -ne 2 ]; MOUNTPOINT="${1}_dc" -encfs "$(realpath "$1")" "$(realpath "$MOUNTPOINT")" diff --git a/.scripts/homeinit b/.scripts/homeinit index 36cb8b9e..13444ff6 100755 --- a/.scripts/homeinit +++ b/.scripts/homeinit @@ -111,3 +111,10 @@ if [ -d "$SOURCEDIR" ]; then ln -snf "$SOURCEDIR/launchers" "$HOME/.launchers" echo fi + +## Temp scripts +if [ -d "$SOURCEDIR" ]; then + echo "==> Hackpool" + ln -snf "$SOURCEDIR/hackpool" "$HOME/.hackpool" + echo +fi