#!/bin/sh # # move in script - set up a newly created account with sensible configuration # # Copyright © 2011 Tobias Klauser # Released under the terms of the Artistic Licence 2.0 # # Based on mrsetup by martin f. krafft which is: # Copyright © 2008 martin f. krafft # set -eu GIT_USER=tklauser GIT_SERVER=ssh://$GIT_USER@git.distanz.ch GIT_REPOS='srv/git/git.distanz.ch' MR_CODE=$HOME/src/mr MR_REPO_URL=$GIT_SERVER/$GIT_REPOS/mr.git MR_DOTFILES_REPO_URL=$GIT_SERVER/$GIT_REPOS/dotfiles/mr.git DOTFILES=$HOME/src/dotfiles MR_DOTFILES=src/dotfiles/mr.git if [ ! -x "$(command -v git)" ]; then echo "E: git is not installed." >&2 exit 2 fi cd $HOME if [ -e .mrconfig ]; then echo "E: .mrconfig already exists." >&2 exit 2 fi if [ -d "$DOTFILES" ]; then echo "E: $DOTFILES already exists." >&2 exit 3 fi if [ -d .git ]; then echo "E: .git already exists." >&2 exit 4 fi if [ -d $MR_CODE ]; then if [ -x $MR_CODE/mr ]; then echo "W: $MR_CODE already exists, let's hope for the best." >&2 else echo "E: $MR_CODE already exists but doesn't provide mr." >&2 exit 5 fi else echo "I: cloning mr into $MR_CODE..." mkdir -p ${MR_CODE%/*} git clone --no-checkout $MR_REPO_URL $MR_CODE (cd $MR_CODE && git checkout -b vcsh origin/vcsh) echo fi cat << EOF > .mrconfig.movein [DEFAULT] include = cat $MR_CODE/lib/* [$MR_DOTFILES] checkout = git_fake_bare_checkout $MR_DOTFILES_REPO_URL ${MR_DOTFILES##*/} ../../../ EOF cat << EOF > .mrtrust .mrconfig.movein EOF echo "I: initial .mrconfig:" cat .mrconfig.movein echo echo "I: cloning mr configuration..." $MR_CODE/mr --config .mrconfig.movein co echo echo "I: setting up base..." $MR_CODE/mr co echo "I: spawning a shell..." $SHELL -i -l /dev/tty echo "I: back from shell..." exit 0 net-next.git/tree/?id=c92816275674c1491ce228ee49aa030a5fa1be04'>treecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-15 12:40:53 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-15 12:40:53 -0800
commitc92816275674c1491ce228ee49aa030a5fa1be04 (patch)
tree97deb97f282c6b9f4f58e45a60ea78d1fe31df4e
parent2d5a7101a140adcf7a5d8677649847fbb2dd5a2f (diff)
parentc8a6a09c1c617402cc9254b2bc8da359a0347d75 (diff)
Merge tag 'char-misc-4.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver fixes from Greg KH: "Here are some small char/misc driver fixes for 4.10-rc4 that resolve some reported issues. The MEI driver issue resolves a lot of problems that people have been having, as does the mem driver fix. The other minor fixes resolve other reported issues. All of these have been in linux-next for a while" * tag 'char-misc-4.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: vme: Fix wrong pointer utilization in ca91cx42_slave_get auxdisplay: fix new ht16k33 build errors ppdev: don't print a free'd string extcon: return error code on failure drivers: char: mem: Fix thinkos in kmem address checks mei: bus: enable OS version only for SPT and newer