File: 03_edit_patch.sh

package info (click to toggle)
dpatch 2.0.38%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 676 kB
  • sloc: sh: 1,013; makefile: 225; awk: 57; perl: 17
file content (20 lines) | stat: -rwxr-xr-x 427 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
##: Check that modifying of patch file works.
# Junichi Uekawa 19 June 2005.
set -e

cd $PKGPATH

#make sure it's unpatched
debian/rules unpatch
echo 'echo this-is-a-modified-line > one1 ' | dpatch-edit-patch 01_edpatch
debian/rules patch

echo '=== check file one1 contains the right content'
[ `cat one1` = this-is-a-modified-line ]
debian/rules unpatch

echo '=== check file one1 does not exist'
[ ! -f one1 ]