summaryrefslogtreecommitdiff
path: root/mrmovein
blob: 1a456ab1384d56e50fb142fa43d9918a08af1ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/sh
#
# move in script - set up a newly created account with sensible configuration
#
# Copyright © 2011 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Based on mrsetup by martin f. krafft which is:
# Copyright © 2008 martin f. krafft <madduck@madduck.net>
#

set -eu

GIT_SERVER=ssh://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

exit 0
xt.git/commit/include/net/addrconf.h?id=1f6d80358dc9bbbeb56cb43384fa11fd645d9289'>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+1 2014-09-13ipv6: clean up ipv6_dev_ac_inc()WANG Cong1-1/+1 2014-09-12ipv6: clean up anycast when an interface is destroyedSabrina Dubroca1-0/+1 2014-04-30net: ipv6: Introduce ip6_sk_dst_hoplimit.Lorenzo Colitti1-5/+0 2014-02-27ipv6: addrconf: silence sparse endianness warningsBjΓΈrn Mork1-3/+3 2014-01-22ipv6: enable anycast addresses as source addresses for datagramsFX Le Bail1-2/+3 2013-12-09neigh: ipv6: respect default values set before an address is assigned to deviceJiri Pirko1-0/+7 2013-12-06ipv6 addrconf: extend ifa_flags to u32Jiri Pirko1-2/+2 2013-09-28IPv6 NAT: Do not drop DNATed 6to4/6rd packetsCatalin\(ux\) M. BOIE1-0/+4 2013-08-31vxlan: add ipv6 proxy supportCong Wang1-0/+4 2013-08-31vxlan: add ipv6 route short circuit supportCong Wang1-0/+1 2013-08-31ipv6: export a stub for IPv6 symbols used by vxlanCong Wang1-0/+15 2013-07-31addrconf.h: Remove extern function prototypesJoe Perches1-88/+72 2013-07-01ipv6,mcast: always hold idev->lock before mca_lockAmerigo Wang1-0/+3 2013-06-28ipv6: resend MLD report if a link-local address completes DADHannes Frederic Sowa1-0/+1 2013-05-23netfilter: add nf_ipv6_ops hook to fix xt_addrtype with IPv6Florian Westphal1-1/+1 2013-04-14ipv6: statically link register_inet6addr_notifier()Cong Wang1-0/+1 2013-01-29ipv4: introduce address lifetimeJiri Pirko1-0/+4 2013-01-20ipv6: Optimize ipv6_addr_is_ll_all_{nodes,routers}().YOSHIFUJI Hideaki / ε‰θ—€θ‹±ζ˜Ž1-0/+10 2013-01-20ipv6: Optimize ipv6_addr_is_solict_mult().YOSHIFUJI Hideaki / ε‰θ—€θ‹±ζ˜Ž1-4/+11 2013-01-20ipv6: Introduce ipv6_addr_is_solict_mult() to check Solicited Node Multicast ...YOSHIFUJI Hideaki / ε‰θ—€θ‹±ζ˜Ž1-0/+8 2013-01-20ipv6: Make ipv6_addr_is_XXX() return boolean.YOSHIFUJI Hideaki1-4/+4 2013-01-13ipv6: Make ipv6_is_mld() inline and use it from ip6_mc_input().YOSHIFUJI Hideaki / ε‰θ—€θ‹±ζ˜Ž1-1/+25 2012-12-04netconf: advertise mc_forwarding statusNicolas Dichtel1-0/+3 2012-08-30netfilter: ip6tables: add MASQUERADE targetPatrick McHardy1-1/+1 2012-07-18ipv6: add ipv6_addr_hash() helperEric Dumazet1-1/+2 2012-05-19ipv6: bool/const conversions phase2Eric Dumazet1-9/+9 2012-04-15net: cleanup unsigned to unsigned intEric Dumazet1-1/+1 2012-02-01ipv6: Remove never used function inet6_ac_check().David S. Miller1-1/+0 2012-01-04ipv6: Check RA for sllao when configuring optimistic ipv6 address (v2)Neil Horman1-1/+2 2011-08-01ipv6: updates to privacy addresses per RFC 4941.Lorenzo Colitti1-1/+1 2011-04-24net: Remove __KERNEL__ cpp checks from include/netDavid S. Miller1-3/+0 2011-04-22inet: constify ip headers and in6_addrEric Dumazet1-11/+11 2010-12-02net: kill unused macros from head fileShan Wei1-2/+0 2010-10-05ipv6: make __ipv6_isatap_ifid staticstephen hemminger1-2/+0 2010-09-27Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller