SHA256
1
0
forked from pool/dcraw
dcraw/update_dcraw
Petr Ostadal f99e3dd203 - Update to version 9.17:
dcraw - revision 1.454
  * Copied color matrices from DNG Converter 7.3.
  * Support the Canon EOS 6D, 1DX, SX50, Casio EX-ZR100, Fuji X-E1 & XF1,
    Pentax K-5 II (s), and Samsung EX2F
- updated update_dcraw script to be able to work with dcraw tarball

OBS-URL: https://build.opensuse.org/package/show/graphics/dcraw?expand=0&rev=34
2013-01-18 13:25:11 +00:00

34 lines
1.7 KiB
Bash

#! /bin/sh
# Call this script to update dcraw files (except the main package) to latest version.
# "wget", "rcs" and "lynx" packages are required for the update
wget -N http://www.cybercom.net/~dcoffin/dcraw/parse.c
wget -N http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
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
mv badpixels .badpixels
wget -N http://www.cybercom.net/~dcoffin/dcraw/.badpixels
mv .badpixels badpixels
( 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
wget -N http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v
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
rlog dcraw.c >dcraw.log
rm -f dcraw.c dcraw.c,v
wget -N http://www.cybercom.net/~dcoffin/dcraw/RCS/parse.c,v
rlog parse.c >parse.log
rm parse.c,v
echo
echo "********************************************************************"
echo "********************************************************************"
echo "Please check, whether packaged file list is up to date."
echo "You can look at dcraw.log and parse.log for the complete change log."
echo "Before submit, please call:"
echo "rm dcraw.log parse.log"