File: recreate-diffs.sh

package info (click to toggle)
sylpheed-claws 0.7.4claws-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,916 kB
  • ctags: 4
  • sloc: makefile: 86; sh: 41
file content (23 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

PACK=$1

test -d $PACK.patched && rm -r $PACK.patched

cp -r $PACK{,.patched} 

for i in patches/*; do 
    echo "Patching $i..."
    cd $PACK.patched
    cat ../$i | patch -p1
    cd .. 
    find $PACK.patched -name \*.orig -exec rm -f {} \;
    diff -urN $PACK $PACK.patched > $i.new
    mv $i $i.old
    mv $i.new $i
    rm -r $PACK
    cp -r $PACK.patched $PACK
done

rm -r $PACK.patched
touch patch-stamp