first initial commit
This commit is contained in:
26
export-all-patch.sh
Normal file
26
export-all-patch.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=$(cat ~/bromite/build/RELEASE)
|
||||
CURRENT_RELEASE=$(git -C ~/chromium/src/ rev-parse --verify refs/tags/$VERSION)
|
||||
|
||||
ALLPATCHS=$(git -C ~/chromium/src/ rev-list HEAD...$CURRENT_RELEASE)
|
||||
|
||||
mkdir ~/bromite/build/patches-new
|
||||
|
||||
NO_NAME=1
|
||||
|
||||
for patch in $ALLPATCHS; do
|
||||
|
||||
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | grep FILE: | sed 's/FILE://g' | sed 's/^[ \t]*//;s/[ \t]*$//')
|
||||
if [ -z "$PATCH_FILE" ]
|
||||
then
|
||||
PATCH_FILE=$NO_NAME.patch
|
||||
NO_NAME=$NO_NAME.1
|
||||
|
||||
echo No Name ${NO_NAME}, press return
|
||||
read -n 1
|
||||
fi
|
||||
|
||||
bash ~/export-single-patch.sh $patch $PATCH_FILE
|
||||
|
||||
done
|
Reference in New Issue
Block a user