2007-01-15 23:08:44 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2011-03-25 07:35:57 +00:00
|
|
|
# Call this script to update dcraw files (except the main package) to latest version.
|
2011-12-23 19:21:40 +00:00
|
|
|
# "wget", "rcs" and "lynx" packages are required for the update
|
2007-01-15 23:08:44 +00:00
|
|
|
|
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/parse.c
|
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
|
2011-03-25 07:35:57 +00:00
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/rawphoto.c
|
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/clean_crw.c
|
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/fuji_green.c
|
2013-01-18 13:25:11 +00:00
|
|
|
mv badpixels .badpixels
|
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/.badpixels
|
2007-02-09 00:04:59 +00:00
|
|
|
mv .badpixels badpixels
|
2011-03-25 07:35:57 +00:00
|
|
|
( URL="http://www.cybercom.net/~dcoffin/dcraw/" ; echo -e "$URL:\n" ; LC_ALL=C lynx -display_charset=utf-8 -dump "$URL" | sed '1d;3,4d' ) >README
|
2007-05-03 22:06:54 +00:00
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v
|
2013-01-18 13:25:11 +00:00
|
|
|
OLDVERSION=`sed -ne 's/^Version:[[:space:]]*\([0-9.]\+\)[[:space:]]*$/\1/p' dcraw.spec`
|
|
|
|
NEWVERSION=`lynx -dump http://www.cybercom.net/~dcoffin/dcraw/archive/ | sed -n -e 's/^.*dcraw-\([0-9.]\+\)\.tar\.gz.*$/\1/p' |sort -nr |head -1`
|
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-${NEWVERSION}.tar.gz
|
|
|
|
sed -i -e "s/^\(Version:[[:space:]]*\)[0-9.]\+[[:space:]]*$/\1${NEWVERSION}/" dcraw.spec
|
|
|
|
tar --strip-components=1 -xf dcraw-${OLDVERSION}.tar.gz dcraw/dcraw.c
|
|
|
|
rm dcraw-${OLDVERSION}.tar.gz
|
2007-01-15 23:08:44 +00:00
|
|
|
rlog dcraw.c >dcraw.log
|
2013-01-18 13:25:11 +00:00
|
|
|
rm -f dcraw.c dcraw.c,v
|
2011-05-14 15:07:56 +00:00
|
|
|
wget -N http://www.cybercom.net/~dcoffin/dcraw/RCS/parse.c,v
|
|
|
|
rlog parse.c >parse.log
|
2013-01-18 13:25:11 +00:00
|
|
|
rm parse.c,v
|
2007-01-15 23:08:44 +00:00
|
|
|
echo
|
2011-08-04 07:54:28 +00:00
|
|
|
echo "********************************************************************"
|
|
|
|
echo "********************************************************************"
|
2007-01-15 23:08:44 +00:00
|
|
|
echo "Please check, whether packaged file list is up to date."
|
2011-05-14 15:07:56 +00:00
|
|
|
echo "You can look at dcraw.log and parse.log for the complete change log."
|
2007-01-15 23:08:44 +00:00
|
|
|
echo "Before submit, please call:"
|
2013-01-18 13:25:11 +00:00
|
|
|
echo "rm dcraw.log parse.log"
|