-
-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathgit2cvs.sh
More file actions
executable file
·20 lines (13 loc) · 646 Bytes
/
git2cvs.sh
File metadata and controls
executable file
·20 lines (13 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# This script must be ran from a CVS repository
# Update CVS repository
cvs update
#cvs udpate -C
# Set here id of last commit found into git repo of awstats that were included into cvs
export LASTINCLUDEDID=89ac100831d627ac012e4972af9cc572297de97d
# Set here where is store git repository
export GIT_DIR=/home/ldestailleur/git/awstats/.git
# Commit 5 commits at once after last commit
echo "git cherry $LASTINCLUDEDID HEAD | sed -n 's/^+ //p' | head -n 50"
git cherry $LASTINCLUDEDID HEAD | sed -n 's/^+ //p' | head -n 50
git cherry $LASTINCLUDEDID HEAD | sed -n 's/^+ //p' | head -n 50 | xargs -l1 git cvsexportcommit -c -p -v