mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Remove dirname from exported patches
This commit is contained in:
parent
50dab305c9
commit
e81f07831e
1 changed files with 10 additions and 1 deletions
|
|
@ -46,7 +46,16 @@ function extract_core {
|
|||
# Generate patches from start of openwrt repo.
|
||||
mkdir -p patches
|
||||
repo=$(basename $path)
|
||||
git format-patch $initial_commit $path -o patches
|
||||
dir=$(dirname $path)
|
||||
git format-patch $initial_commit $path -o patches #> /dev/null
|
||||
|
||||
# Remove dirname from patches to commit the packages to the
|
||||
# top directory in the destination repo.
|
||||
ls patches | while read line; do
|
||||
sdir=$(echo "$dir/" | sed 's/\//\\\//g')
|
||||
sed -i "s/$sdir//g" patches/$line
|
||||
done
|
||||
|
||||
cd $import_repo
|
||||
|
||||
if [ -n "$(git rev-parse -q --verify remotes/origin/$repo)" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue