Debian Codegraph @

t/t4135/make-patches

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 do_filenamescip-shell shell shell-project 0.0.0 do_filename().() {
4 desc=$1
5 postimage=$2
6
7 rmscip-shell system . . rm. -fr file-creation &&
8 gitscip-shell system . . git. init file-creation &&
9 (
10 cd file-creation &&
11 gitscip-shell system . . git. commit --allow-empty -m init &&
12 echoscip-shell system . . echo. postimage >"$postimage" &&
13 gitscip-shell system . . git. add -N "$postimage" &&
14 gitscip-shell system . . git. diff HEAD >"../git-$desc.diff"
15 ) &&
16
17 rmscip-shell system . . rm. -fr trad-modification &&
18 mkdirscip-shell system . . mkdir. trad-modification &&
19 (
20 cd trad-modification &&
21 echoscip-shell system . . echo. preimage >"$postimage.orig" &&
22 echoscip-shell system . . echo. postimage >"$postimage" &&
23 ! diffscip-shell system . . diff. -u "$postimage.orig" "$postimage" >"../diff-$desc.diff"
24 ) &&
25
26 rmscip-shell system . . rm. -fr trad-creation &&
27 mkdirscip-shell system . . mkdir. trad-creation &&
28 (
29 cd trad-creation &&
30 mkdirscip-shell system . . mkdir. a b &&
31 echoscip-shell system . . echo. postimage >"b/$postimage" &&
32 ! diffscip-shell system . . diff. -pruN a b >"../add-$desc.diff"
33 )
34 }
35
36 do_filenamescip-shell shell shell-project 0.0.0 do_filename(). plain postimage.txt &&
37 do_filenamescip-shell shell shell-project 0.0.0 do_filename(). 'with spaces' 'post image.txt' &&
38 do_filenamescip-shell shell shell-project 0.0.0 do_filename(). 'with tab' 'post image.txt' &&
39 do_filenamescip-shell shell shell-project 0.0.0 do_filename(). 'with backslash' 'post\image.txt' &&
40 do_filenamescip-shell shell shell-project 0.0.0 do_filename(). 'with quote' '"postimage".txt' &&
41 expandscip-shell system . . expand. add-plain.diff >damaged.diff ||
42 {
43 echoscip-shell system . . echo. >&2 Failed. &&
44 exit 1
45 }