changed method of creating new patch name

This commit is contained in:
uazo 2022-09-07 11:43:26 +02:00 committed by GitHub
parent 50441d00bc
commit e826c60239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,15 +18,11 @@ for patch in $ALLPATCHS_E; do
if [ -z "$PATCH_FILE" ]
then
#git -C ~/chromium/src/ show -s $patch
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | tail -n 1)
if [[ "$PATCH_FILE" != *".patch" ]]; then
PATCH_FILE=$NO_NAME.patch
NO_NAME=$NO_NAME.1
echo No Name ${NO_NAME}, press return
PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch
echo New Patch: ${PATCH_FILE}
fi
read -n 1
fi
bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE