forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib_sync
executable file
·48 lines (35 loc) · 1.44 KB
/
lib_sync
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 -ex
git checkout master
LIB=$1
git branch lib_$LIB
git checkout lib_$LIB
git filter-branch -f --prune-empty --subdirectory-filter libraries/$LIB lib_$LIB
cd ../libraries
mkdir $LIB
cd $LIB
git init
git pull ../../Arduino lib_$LIB
git config user.email [email protected]
git filter-branch -f --commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then export [email protected];
fi; git commit-tree "$@"'
git filter-branch -f --commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then export [email protected];
fi; git commit-tree "$@"'
git filter-branch -f --commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then export [email protected];
fi; git commit-tree "$@"'
git filter-branch -f --commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then export [email protected];
fi; git commit-tree "$@"'
git filter-branch -f --commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then export [email protected];
fi; git commit-tree "$@"'
git filter-branch -f --commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then export [email protected];
fi; git commit-tree "$@"'
git remote add origin [email protected]:arduino-libraries/$LIB.git
git fetch --all
cd ../../Arduino
git checkout master
git branch -D lib_$LIB