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" ] if [ -z "$PATCH_FILE" ]
then then
#git -C ~/chromium/src/ show -s $patch
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | tail -n 1) PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | tail -n 1)
if [[ "$PATCH_FILE" != *".patch" ]]; then if [[ "$PATCH_FILE" != *".patch" ]]; then
PATCH_FILE=$NO_NAME.patch PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch
NO_NAME=$NO_NAME.1 echo New Patch: ${PATCH_FILE}
echo No Name ${NO_NAME}, press return
fi fi
read -n 1
fi fi
bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE