summaryrefslogtreecommitdiff
blob: 42b687962b369b31f8d1deeb3464031a0fb6db7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# update parse and rawphoto tarballs

echo "Updating parse tarbal..." 
tmpdir=$(mktemp -d)
cd ${tmpdir}
for file in parse.c rawphoto.c; do
	wget "http://www.cybercom.net/~dcoffin/dcraw/${file}" && \
	mkdir dcraw && \
	mv ${file} dcraw && \
	tar jcvf ${file/.c}-$(awk '/Revision:/{print $2}' dcraw/${file}).tar.bz2 dcraw
	if [[ $? != 0 ]]; then
		echo "Unable to update ${file}."
		exit 1
	fi
	cd ${tmpdir} && rm -r dcraw
done

echo "Grab tarballs at ${tmpdir} move into $(portageq distdir) and update ebuild."