Logoj0ke.net Open Build Service > Projects > devel:libs > arts++ > create-patch
Sign Up | Log In

File create-patch of Package arts++

 
1
#!/bin/bash
2
3
if [ -z "$1" ] ; then
4
    SOURCEDIR=arts++-1.1.a13
5
else
6
    SOURCEDIR=$1
7
fi
8
9
ORIGFILES=`find ${SOURCEDIR} -name \*.orig`
10
11
for ORIG in ${ORIGFILES} ; do
12
13
    PATCHTARGET=`basename ${ORIG} .orig`
14
    PATCHPATH=`echo ${ORIG} | awk -F${PATCHTARGET} '{print $1}'`
15
16
    diff -uNr ${ORIG} ${PATCHPATH}${PATCHTARGET}
17
18
done
19
20