linux下各种patch的管理工具

源代码在线查看: dir-a-b.test

软件大小: 395 K
上传用户: jianmingcao
关键词: linux patch 管理工具
下载地址: 免注册下载 普通下载 VIP

相关代码

					$ rm -rf d					$ mkdir -p d/patches					$ cd d									$ echo a > test.txt					$ echo d > test3.txt									$ cat > patches/ab.diff					< --- a/test.txt					< +++ b/test.txt					< @@ -1 +1 @@					< -a					< +b					< --- /dev/null					< +++ b/test2.txt					< @@ -0,0 +1 @@					< +c					< --- a/test3.txt					< +++ /dev/null					< @@ -1 +0,0 @@					< -d									$ echo "ab.diff" > patches/series									$ quilt push -q					> Applying patch patches/ab.diff					> Now at patch patches/ab.diff									$ quilt diff -p ab --no-index					> --- a/test.txt					> +++ b/test.txt					> @@ -1 +1 @@					> -a					> +b					> --- /dev/null					> +++ b/test2.txt					> @@ -0,0 +1 @@					> +c					> --- a/test3.txt					> +++ /dev/null					> @@ -1 +0,0 @@					> -d									$ rm -f patches/ab.diff					$ quilt refresh -p ab --no-index					> Refreshed patch patches/ab.diff									$ cat patches/ab.diff					> --- a/test.txt					> +++ b/test.txt					> @@ -1 +1 @@					> -a					> +b					> --- /dev/null					> +++ b/test2.txt					> @@ -0,0 +1 @@					> +c					> --- a/test3.txt					> +++ /dev/null					> @@ -1 +0,0 @@					> -d									$ quilt pop -qR					> Removing patch patches/ab.diff					> No patches applied									$ cd ..					$ rm -rf d							

相关资源