| 1 |
#!/bin/sh |
| 2 |
#This script will grab and repack the upstream source. |
| 3 |
|
| 4 |
version=0.5 |
| 5 |
|
| 6 |
set -e |
| 7 |
|
| 8 |
echo "Downloading the stuff" |
| 9 |
#-c, as it seems the upstream has a thin pipe. Be nice. Don't run this |
| 10 |
#script without need. |
| 11 |
wget -c http://www.egregorion.net/works/Chameleon-White-0.5.tar.bz2 |
| 12 |
wget -c http://www.egregorion.net/works/Chameleon-SkyBlue-0.5.tar.bz2 |
| 13 |
wget -c http://www.egregorion.net/works/Chameleon-Pearl-0.5.tar.bz2 |
| 14 |
wget -c http://www.egregorion.net/works/Chameleon-Anthracite-0.5.tar.bz2 |
| 15 |
wget -c http://www.egregorion.net/works/Chameleon-DarkSkyBlue-0.5.tar.bz2 |
| 16 |
|
| 17 |
rm -rf chameleon-$version |
| 18 |
mkdir chameleon-$version |
| 19 |
cd chameleon-$version |
| 20 |
|
| 21 |
echo "Uncompressing tarballs:" |
| 22 |
for x in ../Chameleon-*-$version.tar.bz2;do echo "$x";tar xfj "$x";done |
| 23 |
|
| 24 |
echo "Removing preview images" |
| 25 |
rm `find -name 'preview.jpg'` |
| 26 |
|
| 27 |
echo "Removing pre-built files" |
| 28 |
find|while read x;do if file "$x"|grep -q GLS_BINARY_LSB_FIRST;then rm "$x";fi;done |
| 29 |
|
| 30 |
echo "Building chameleon-$version.tar.gz" |
| 31 |
cd .. |
| 32 |
tar cfz chameleon-$version.tar.gz chameleon-$version |
| 33 |
|
| 34 |
echo "Cleaning up" |
| 35 |
rm -rf chameleon-$version |
| 36 |
|
| 37 |
echo "Done." |