Browse Source

Make some cleanp on local executables

Emmanuel Bouthenot 4 years ago
parent
commit
eb79618590
6 changed files with 0 additions and 75 deletions
  1. 0 45
      .bin/dotfiles-bootstrap
  2. 0 30
      .bin/mutt-edit-label
  3. 0 0
      .local/bin/colortest
  4. 0 0
      .local/bin/lftp-mirror
  5. 0 0
      .local/bin/mssh
  6. 0 0
      .local/bin/rdebsign

+ 0 - 45
.bin/dotfiles-bootstrap

@@ -1,45 +0,0 @@
-#!/bin/sh
-
-if [ -z "${DOTFILES_DIR}" ]; then
-    DOTFILES_DIR="kolter-dotfiles"
-fi
-
-printf "Looking for dotfiles dir '%s' ... " "${DOTFILES_DIR}"
-if [ -d "${DOTFILES_DIR}" ]; then
-    printf "OK\n"
-else
-    printf "FAILED\n"
-    exit 1
-fi
-
-printf "Copying config files in home directory '%s':\n" "${HOME}"
-find "${DOTFILES_DIR}" -maxdepth 1 -mindepth 1 | \
-    while read d ; do
-        printf "\t'%s' -> '%s/%s' ... " "${d}" "${HOME}" "$(basename "${d}")"
-        if mv -f "${d}" "${HOME}" >/dev/null 2>&1 ; then
-            printf "OK\n"
-        else
-            printf "KO\n"
-        fi
-    done
-
-printf "Removing dotfiles dir '%s' ... " "${DOTFILES_DIR}"
-if rmdir "${DOTFILES_DIR}" >/dev/null 2>&1 ; then
-    printf "OK\n"
-else
-    printf "KO\n"
-fi
-
-printf "Adding some symbolic links ...\n" "${DOTFILES_DIR}"
-for lnk in .zsh.d/zshrc:.zshrc .vim/vimrc:.vimrc ; do
-    lnk_src=$(echo "${lnk}" | cut -d ':' -f 1)
-    lnk_dest=$(echo "${lnk}" | cut -d ':' -f 2)
-    printf "\t'%s/%s' -> '%s/%s' ... " "${HOME}" "${lnk_src}" "${HOME}" "${lnk_dest}"
-    if [ -f "${lnk_src}" ] && (cd "${HOME}" && ln -sf "${lnk_src}" "${lnk_dest}" ) ; then
-        printf "OK\n"
-    else
-        printf "KO\n"
-    fi
-done
-
-exit 0

+ 0 - 30
.bin/mutt-edit-label

@@ -1,30 +0,0 @@
-#!/bin/bash
-
-FILE=$1
-
-clean_labels() {
-    echo $* | \
-        sed -r -e 's/,/ /g' -e 's/ +/ /g' -e 's/^\s*//' -e 's/\s*$//' | \
-        tr '[[:lower:]]' '[[:upper:]]' | \
-        tr ' ' '\n' | \
-        sort -u | tr '\n' ' ' | \
-        sed 's/\s*$//'
-}
-
-prepare_labels() {
-    clean_labels $* | sed 's/ /, /g'
-}
-
-CURRENT_LABELS=$(clean_labels $(formail -z -x X-Label < "${FILE}"))
-
-read -e -p "Enter labels (space separated): " -i "$CURRENT_LABELS" NEW_LABELS
-NEW_LABELS=$(prepare_labels $NEW_LABELS)
-
-FILE_TMP=$(mktemp "$(basename $(readlink -f "${0}"))_XXXXXX")
-
-if formail -z -I "X-Label: $NEW_LABELS" < "${FILE}" >> "${FILE_TMP}" && \
-    cp "${FILE_TMP}" "${FILE}" ; then
-    rm -f "${FILE_TMP}"
-fi
-
-exit 0

+ 0 - 0
.bin/colortest → .local/bin/colortest


+ 0 - 0
.bin/lftp-mirror → .local/bin/lftp-mirror


+ 0 - 0
.bin/mssh → .local/bin/mssh


+ 0 - 0
.bin/rdebsign → .local/bin/rdebsign