How to stay update with dcraw

norsk

Dcraw

Dcraw is a very nice and high quality program. New versions are coming the whole time. It can however be quite hard to notice what is new in the latest version.
For a couple of years my workflow has been, download the current dcraw.c and use diff against my previous version. It works of course, but reading the output can be quite hard for a non-programmer.
That was the reason I wrote this shell script.

The script require that you have the folders ~/dcraw/RCS. Make this with “mkdir -p ~/dcraw/RCS/”. It also requires “rcs2log” and “do”. I guess it means that you need a packet called rcs and cvs installed.


dato=$(date +%F)
# create this with mkdir -p ~/dcraw/RCS/
cd ~/dcraw/
cd RCS
wget -o ../wgetlog -N http://cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v
new=$(grep not ../wgetlog)if [ -n "$new" ]
then
echo "Alredy downloaded, quiting"
exit
else
echo "Checking out most recent version..."
cd ..
echo "You have version: "
grep $Revis dcraw.c
mv dcraw.c dcraw.$dato
rcs2log -v | head
co dcraw.c
echo "compiling new version"
gcc -o dcraw -O4 dcraw.c -lm -ljpeg -llcms
echo "copy new version to /usr/local/bin/"
sudo cp dcraw /usr/local/bin/
exit
fi

Sample output


Checking out most recent version....
You have version:
   $Revision: 1.386 $
2007-06-24  dcoffin  

        * dcraw.c 1.387: Support all Lossless JPEG predictors.

2007-06-14  dcoffin  

        * dcraw.c 1.386:
        Reports of corruption in 16-bit linear DNGs were false.

2007-06-13  dcoffin  
RCS/dcraw.c,v  –>  dcraw.c
revision 1.387
done

One Response to “How to stay update with dcraw”

  1. Michael Lee Says:

    Lars,

    Keeping up with dcraw development is indeed a chore. It has changed a lot over the years. Might I ask you a specific question about dcraw? You seem to use it a lot. I’ve been reading some of your old postings in the Digital Light & Color message boards and hope you have the time to email me. Thanks.

Leave a Reply

Please copy the string DSLtuK to the field below: