~vcs-imports/samba/main

« back to all changes in this revision

Viewing changes to packaging/Debian/debian-sarge/scripts/unpatch-source

  • Committer: jerry
  • Date: 2006-07-14 21:48:39 UTC
  • Revision ID: vcs-imports@canonical.com-20060714214839-586d8c489a8fcead
gutting trunk to move to svn:externals

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
#
3
 
#
4
 
 
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
10
 
 
11
 
# Unused code. See comment in the patch-source script.
12
 
 
13
 
#TMPFILE=source/VERSION.debian
14
 
#sed -e "s/^\(SAMBA_VERSION_VENDOR_SUFFIX=\).*$/\1/" source/VERSION > ${TMPFILE}
15
 
#mv -f ${TMPFILE} source/VERSION
16
 
 
17
 
# Regenerate configure only if it is older than configure.in
18
 
[ source/configure -ot source/configure.in ] && (cd source && sh ./autogen.sh)
19
 
 
20
 
exit 0