summaryrefslogtreecommitdiffstats
path: root/twin/update_compton_tde
blob: 71d27dea827f79b4f0f88d30d856552f86330270 (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
#!/bin/bash
#
# (c) 2014 Timothy Pearson <[email protected]>
# Released under the GPL v2/v3
#
# NOTE
# This script cannot typically be run as-is against the tree
# Specifically the code below the bash call is highly likely to fail!
#
# In a nutshell, due to bad behaviour from GIT in this use case, this
# script is more of a starting point than an actual automated update...
#

set -e

TDEBASE_WORKING_DIRECTORY=~/TEMP2/tdebase-trinity-14.0.0-r1664

mkdir TEMP
cd TEMP
git clone https://github.com/chjj/compton.git
cd compton
git subtree split -P src -b compton-tde
cd ..

mkdir compton-tde
cd compton-tde
git init
git pull ../compton compton-tde

rm -rf .git/refs/original
git reflog expire --all
git gc --aggressive --prune=now
git reflog expire --all --expire-unreachable=0
git repack -A -d
git prune

cd ../..

cd compton-tde
git remote add -f compton-update $TDEBASE_WORKING_DIRECTORY/twin/TEMP/compton-tde
git merge --no-commit compton-update/master
echo "Now resolve conflicts, exit when done..."
bash
git read-tree --prefix=twin/compton-tde/ -u compton-update/master
git commit -m "Merge compton changes"
git pull -s subtree compton-update master
git remote rm compton-update