File: makeorig

package info (click to toggle)
chameleon-cursor-theme 0.5-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 9,932 kB
  • sloc: makefile: 186; sh: 63
file content (37 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#This script will grab and repack the upstream source.

version=0.5

set -e

echo "Downloading the stuff"
#-c, as it seems the upstream has a thin pipe.  Be nice.  Don't run this
#script without need.
wget -c http://www.egregorion.net/works/Chameleon-White-0.5.tar.bz2
wget -c http://www.egregorion.net/works/Chameleon-SkyBlue-0.5.tar.bz2
wget -c http://www.egregorion.net/works/Chameleon-Pearl-0.5.tar.bz2
wget -c http://www.egregorion.net/works/Chameleon-Anthracite-0.5.tar.bz2
wget -c http://www.egregorion.net/works/Chameleon-DarkSkyBlue-0.5.tar.bz2

rm -rf chameleon-$version
mkdir chameleon-$version
cd chameleon-$version

echo "Uncompressing tarballs:"
for x in ../Chameleon-*-$version.tar.bz2;do echo "$x";tar xfj "$x";done

echo "Removing preview images"
rm `find -name 'preview.jpg'`

echo "Removing pre-built files"
find|while read x;do if file "$x"|grep -q GLS_BINARY_LSB_FIRST;then rm "$x";fi;done

echo "Building chameleon-$version.tar.gz"
cd ..
tar cfz chameleon-$version.tar.gz chameleon-$version

echo "Cleaning up"
rm -rf chameleon-$version

echo "Done."