mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
7 lines
255 B
Bash
Executable File
7 lines
255 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# Expunge extra stuff resulting from diff -u
|
|
# strip everything, including leading '-', except leading '+' to force errors
|
|
#
|
|
awk '/^-/ {if (substr($0,1,3) != "---") print substr($0,2,length($0))} /^+/ {if (substr($0,1,3) != "+++") print $0}'
|