Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
How to create a 'patch ' with full files?

How to create a 'patch ' with full files?

2005-07-25       - By Garrick Staples

 Back
Reply:     1     2     3     4     5     6     7     8     9  

On Mon, Jul 25, 2005 at 03:45:43PM +0200, wolf2k5 alleged:
> So, when I need to apply some changes to the web application, I copy
> all the files (preserving the directory structure) to a new directory
> and edit the files.
>
> When I am finished with the modifications, I issue a  recursive "diff"
> to get a list of the modified files, e.g.:
>
> # diff -q -r rev0 rev1
> Files rev0/subdir/license.txt and rev1/subdir/license.txt differ
> Files rev0/test.txt and rev1/test.txt differ
>
> Then I manually copy the modified files (preserving the directory
> structure) into a new directory, create a tar archive and send it to
> the system administrator for deployment on production server.
>
> Is there any way to automate the last step of this process (figuring
> out the modified files and putting them in a directory)?

tar has a handy -T option, which can read a list of files to include in a new
tarball.  It can even read this list from stdin:
  diff ... | awk ... | tar cvf foo.tar -T -

Also note find's -cnewer and tar's --newer-mtime options.

--
Garrick Staples, Linux/HPCC Administrator
University of Southern California

--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list

Earn $52 per hosting referral at Lunarpages.