File: dist.sh

package info (click to toggle)
colormake 0.9.20140504-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 176 kB
  • sloc: perl: 101; sh: 64; makefile: 11; cpp: 5
file content (23 lines) | stat: -rwxr-xr-x 566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
export VERSION=$(grep '# color' colormake.pl |cut -f3 -d\ )

mkdir -p tmp
ln -s $(pwd) tmp/colormake-$VERSION
(cd tmp && tar chvfz colormake-$VERSION.tar.gz \
                     --exclude=tmp --exclude-vcs --exclude=*.tar.gz \
                     colormake-$VERSION)
mv tmp/*.tar.gz .
rm -rf tmp

echo
echo 'Press ENTER to push to github and Klaki... [CTRL+C to abort]'
read

ln README.md README.txt
scp colormake-$VERSION.tar.gz *.txt \
    bre@klaki.net:public_html/programs/colormake/
rm -f README.txt

git tag -f $VERSION
git push
git push --tags