-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit of scripts handling the submodules
- Loading branch information
Showing
4 changed files
with
116 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# FTP-GIT | ||
# Forward call to submodule | ||
# | ||
|
||
# get all params | ||
params="" | ||
while test $# != 0 | ||
do | ||
params="${params} $1" | ||
shift | ||
done | ||
|
||
# forward call and add --sha1 option | ||
`dirname $0`/ftp-git/ftp-git.sh${params} --sha1=.git-ftp.log | ||
|
||
if [ $? -ne 0 ]; then | ||
exit 1 | ||
fi |
Submodule ftp-git
updated
from c92622 to d78c1c
Submodule git-ftp
updated
from 640db9 to fc8bf7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# GIT-FTP | ||
# Forward call to submodule | ||
# | ||
|
||
|
||
# get all params | ||
params="" | ||
while test $# != 0 | ||
do | ||
params="${params} $1" | ||
shift | ||
done | ||
|
||
check_merge() { | ||
# check whether ftp-git branch has been merged | ||
diff_logs=`git log ftp ^master | wc -l` | ||
if [ $diff_logs -gt 0 ]; then | ||
echo "" | ||
echo "*****************************************************" | ||
echo "FATAL:" | ||
echo " the branch ftp has not been merged onto master yet." | ||
echo " please do so and try again." | ||
echo "*****************************************************" | ||
echo "" | ||
exit 1 | ||
fi | ||
} | ||
|
||
check_merge | ||
|
||
|
||
echo "" | ||
echo "*****************" | ||
echo "* *" | ||
echo "* #1 DOWNLOAD *" | ||
echo "* *" | ||
echo "*****************" | ||
echo "" | ||
|
||
`dirname $0`/download.sh${params} | ||
|
||
if [ $? -ne 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
check_merge | ||
|
||
|
||
echo "" | ||
echo "" | ||
echo "***************" | ||
echo "* *" | ||
echo "* #2 UPLOAD *" | ||
echo "* *" | ||
echo "***************" | ||
echo "" | ||
|
||
# forward call (without --http) | ||
cmd="`dirname $0`/git-ftp/git-ftp.sh${params}" | ||
cmd=`echo "$cmd" | sed "s/\(.*\) --http [^ ]* \(.*\)/\1 \2/"` | ||
$cmd | ||
|
||
if [ $? -ne 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
|
||
echo "" | ||
echo "" | ||
echo "**************" | ||
echo "* *" | ||
echo "* #3 MERGE *" | ||
echo "* *" | ||
echo "**************" | ||
echo "" | ||
|
||
echo "# Checkout ftp" | ||
git checkout ftp | ||
|
||
echo "" | ||
echo "# Merge master" | ||
git merge master | ||
|
||
echo "" | ||
echo "# Get new list from FTP" | ||
`dirname $0`/download.sh${params} --catchup | ||
|
||
echo "" | ||
echo "# Checkout master" | ||
git checkout master |