summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2021-03-27 03:05:19 +0100
committerSuren A. Chilingaryan <csa@suren.me>2021-03-27 03:05:19 +0100
commit448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd (patch)
tree825f7f2839435991f7148f1cebdb29813b9d34e2 /release
parent86973510c4730cc7d25fcf7442ebb49ddefcaec0 (diff)
downloadrusxmms2-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-xrelease38
1 files changed, 38 insertions, 0 deletions
diff --git a/release b/release
new file mode 100755
index 0000000..a0d6915
--- /dev/null
+++ b/release
@@ -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
+)