Counting 447 patches

LTIB uses this patch definition on the spec file:

Patch1 : patch_name-bla-bla-bla.patch

%Prep
%setup
%patch1 -p1

But if you has 447 patches, like in our previous examples? Easy, use this bash command to create the right setup to apply these patches.

$ i=0; while [ $i -lt 447 ]; do i=$(($i + 1)); echo "%patch$i -p1" >> patch_spec; done

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s