Samba 3: added Samba 3.0.24 sources
[tomato.git] / release / src / router / samba3 / packaging / Debian / debian-woody / scripts / unpatch-source
blobd3681cfa504dac6f9592b3199517a83a14c150cb
1 #!/bin/sh -e
5 # We want to reverse the patches in the opposite order we applied
6 # them, hence the 'ls|sort -r'.
7 for patch in `ls debian/patches/*.patch | sort -r`; do
8 patch -p1 -R --ignore-whitespace < $patch
9 done
11 # Unused code. See comment in the patch-source script.
13 #TMPFILE=source/VERSION.debian
14 #sed -e "s/^\(SAMBA_VERSION_VENDOR_SUFFIX=\).*$/\1/" source/VERSION > ${TMPFILE}
15 #mv -f ${TMPFILE} source/VERSION
17 # Regenerate configure only if it is older than configure.in
18 [ source/configure -ot source/configure.in ] && (cd source && autoheader && autoconf)
20 exit 0