File: makepatch

package info (click to toggle)
xnc 5.0.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,672 kB
  • ctags: 13,113
  • sloc: ansic: 72,174; cpp: 50,020; sh: 4,444; makefile: 1,380; yacc: 316; sed: 16
file content (7 lines) | stat: -rwxr-xr-x 174 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#! /bin/sh
patch_file=/tmp/xnc-patch
echo -n "Enter old directory to compare with: "
read old_dir
diff -U 3 -N -r $old_dir . >$patch_file
echo "See patch file: $patch_file"