<commit_before>#!/usr/bin/env sh
# -*- Mode: sh -*-
# xr-tar-world.sh --- tar up important configuration files
# Copyright (C) 2015-2019  <NAME> (dharms)
# Author: <NAME> <<EMAIL>>
# Created: Friday, May 29, 2015
# Version: 1.0
# Modified Time-stamp: <2019-08-21 10:10:18 dan.harms>
# Modified by: <NAME>
# Keywords: configuration

tar=$TAR
user=$(id -nu)
os=$(uname)
host=$(hostname -s)
site=$SITE
dest=xr-world.tar
verbose=

if [ -z "$tar" ]; then
   tar=$(which tar)
   echo "Using $tar"
fi
if [ -z "$tar" ]; then
   echo "! no tar available; quitting"
   exit 1
fi
if [ $# -gt 0 ] ; then
   dest=$1
   shift
fi

echo Generating "$dest"...

if [ -f "$dest" ] ; then
   rm -f "$dest"
fi

$tar c"$verbose"f "$dest" --exclude=src/doc/* config doc src .fonts .config .terminfo
$tar u"$verbose"f "$dest" --exclude=*.elc .emacs.d
$tar u"$verbose"f "$dest" --transform=s%ext%.emacs.d/ext% ext
$tar u"$verbose"f "$dest" --transform=s/scripts/bin/ scripts
$tar u"$verbose"f "$dest" --transform=s/dotfiles\\/// dotfiles
$tar u"$verbose"f "$dest" --transform=s/bash\\/// bash
$tar u"$verbose"f "$dest" --transform=s/tcsh\\/// tcsh
$tar u"$verbose"f "$dest" --transform=s%user/$user\\/%% user/$user
$tar u"$verbose"f "$dest" --transform=s%os/$os\\/%% os/$os
# $tar u"$verbose"f $dest --transform=s%host/$host\\/%% host/$host
# xr installs will load a renamed host file from site/xr
$tar u"$verbose"f "$dest" --transform=s%site/$site/host\\/%% site/$site/host
$tar u"$verbose"f "$dest" --transform=s%site/$site\\/%% --exclude=.git --exclude=site/$site/host site/$site
#$tar --delete .ssh -f $dest

echo ...done generating "$dest"

# xr-tar-world.sh ends here<commit_msg>install .proviso.d at work<commit_after>#!/usr/bin/env sh
# -*- Mode: sh -*-
# xr-tar-world.sh --- tar up important configuration files
# Copyright (C) 2015-2019  <NAME> (dharms)
# Author: <NAME> <<EMAIL>>
# Created: Friday, May 29, 2015
# Version: 1.0
# Modified Time-stamp: <2019-09-13 09:29:24 dan.harms>
# Modified by: <NAME>
# Keywords: configuration

tar=$TAR
user=$(id -nu)
os=$(uname)
host=$(hostname -s)
site=$SITE
dest=xr-world.tar
verbose=

if [ -z "$tar" ]; then
   tar=$(which tar)
   echo "Using $tar"
fi
if [ -z "$tar" ]; then
   echo "! no tar available; quitting"
   exit 1
fi
if [ $# -gt 0 ] ; then
   dest=$1
   shift
fi

echo Generating "$dest"...

if [ -f "$dest" ] ; then
   rm -f "$dest"
fi

$tar c"$verbose"f "$dest" --exclude=src/doc/* config doc src .fonts .config .terminfo .proviso.d
$tar u"$verbose"f "$dest" --exclude=*.elc .emacs.d
$tar u"$verbose"f "$dest" --transform=s%ext%.emacs.d/ext% ext
$tar u"$verbose"f "$dest" --transform=s/scripts/bin/ scripts
$tar u"$verbose"f "$dest" --transform=s/dotfiles\\/// dotfiles
$tar u"$verbose"f "$dest" --transform=s/bash\\/// bash
$tar u"$verbose"f "$dest" --transform=s/tcsh\\/// tcsh
$tar u"$verbose"f "$dest" --transform=s%user/$user\\/%% user/$user
$tar u"$verbose"f "$dest" --transform=s%os/$os\\/%% os/$os
# $tar u"$verbose"f $dest --transform=s%host/$host\\/%% host/$host
# xr installs will load a renamed host file from site/xr
$tar u"$verbose"f "$dest" --transform=s%site/$site/host\\/%% site/$site/host
$tar u"$verbose"f "$dest" --transform=s%site/$site\\/%% --exclude=.git --exclude=site/$site/host site/$site
#$tar --delete .ssh -f $dest

echo ...done generating "$dest"

# xr-tar-world.sh ends here
{'fraction_non_alphanumeric': 0.2230861244019139, 'fraction_numerical': 0.019736842105263157, 'mean_word_length': 3.588477366255144, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2254020', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1296, 'n_words': 349}