You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
710 B
22 lines
710 B
#!/bin/bash
|
|
#if [[ $REPO_REMOTE == rk* ]] || [[ $REPO_RREV == rk33* ]]; then
|
|
if test -d ${PATCHES_PATH}/${REPO_PATH}
|
|
then
|
|
GIT_HEAD=`grep commit ${PATCHES_PATH}/${REPO_PATH}/git-merge-base.txt |cut -c8-47`
|
|
HAVE_PATCH=`find ${PATCHES_PATH}/${REPO_PATH} -name \*.patch`
|
|
HAVE_DIFF=`find ${PATCHES_PATH}/${REPO_PATH} -name local_diff.diff`
|
|
git stash && git checkout -b restore_$DATE $GIT_HEAD
|
|
if [ -n "$HAVE_PATCH" ]; then
|
|
git am $PATCHES_PATH/$REPO_PATH/*.patch
|
|
fi
|
|
|
|
if [ -n "$HAVE_DIFF" ]; then
|
|
git apply $PATCHES_PATH/$REPO_PATH/local_diff.diff
|
|
fi
|
|
|
|
if [ -n "$HAVE_PATCH" -o -n "$HAVE_DIFF" ]; then
|
|
echo Restore patch for "$REPO_PATH" done
|
|
fi
|
|
fi
|
|
#fi
|