diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2021-03-27 03:05:19 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2021-03-27 03:05:19 +0100 |
commit | 448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd (patch) | |
tree | 825f7f2839435991f7148f1cebdb29813b9d34e2 /release | |
parent | 86973510c4730cc7d25fcf7442ebb49ddefcaec0 (diff) | |
download | rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.tar.gz rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.tar.bz2 rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.tar.xz rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.zip |
Restructure to make XMMS just one of the patches
Diffstat (limited to 'release')
-rwxr-xr-x | release | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -0,0 +1,38 @@ +#! /bin/bash + +RDIR=~/releases +NAME=RusXMMS2 + +if [ ! -d $RDIR ]; then + if [ -a $RDIR ]; then + echo "Release directory isn't a directory!" + exit + fi + mkdir -p $RDIR +fi + +version=$(cat VERSION) +rname="$NAME-$version"; + +if [ -d $RDIR/$rname ]; then + rm -rf $RDIR/$rname +fi +mkdir -p $RDIR/$rname +if [ ! -d $RDIR/$rname ]; then + echo "Can't create directory!!!" + exit +fi +cp -a * $RDIR/$rname + +( + cd $RDIR + + if [ -a $rname.tar.bz2 ]; then + rm -f $rname.tar.bz2 + fi + tar cjf $rname.tar.bz2 $rname + rm -rf $rname + + scp $rname.tar.bz2 csa@darksoft.org:/home/csa/public_html/files/rusxmms/ + ssh csa@darksoft.org ln -sf $rname.tar.bz2 /home/csa/public_html/files/rusxmms/$NAME-latest.tar.bz2 +) |