You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
199 B

3 months ago
  1. #!/bin/sh
  2. BASEDIR=$1
  3. echo "Using $BASEDIR as a reference."
  4. for f in `find ./ -type f`
  5. do
  6. if [ -a "$BASEDIR/$f" ]
  7. then
  8. echo "Creating patch for $f..."
  9. diff $BASEDIR/$f $f > $f.patch
  10. fi
  11. done