Gorgone
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
2 deletions
-
support/functions/_compress
-
support/functions/_subversion
|
@ -116,11 +116,13 @@ untarsvn(){ |
|
|
tar -xf "$bsvn/$1.tar.gz" |
|
|
tar -xf "$bsvn/$1.tar.gz" |
|
|
cd $bsvn |
|
|
cd $bsvn |
|
|
ln -sf "$bsvn/$("$svndir/config.sh" -r).tar.gz" "last.tar.gz" |
|
|
ln -sf "$bsvn/$("$svndir/config.sh" -r).tar.gz" "last.tar.gz" |
|
|
|
|
|
printf "\e[1A $w_l SVN Revision : $c_l$(basename $(readlink -f $bsvn/last.tar.gz) .tar.gz)$w_l\n" |
|
|
else |
|
|
else |
|
|
|
|
|
|
|
|
if [ -f "$bsvn/last.tar.gz" ] |
|
|
if [ -f "$bsvn/last.tar.gz" ] |
|
|
then |
|
|
then |
|
|
tar -xf "$bsvn/last.tar.gz" |
|
|
tar -xf "$bsvn/last.tar.gz" |
|
|
|
|
|
printf "\e[1A $w_l SVN Revision : $c_l$(basename $(readlink -f $bsvn/last.tar.gz) .tar.gz)$w_l\n" |
|
|
else |
|
|
else |
|
|
printf "$w_l SVN Backup :$r_l $txt_not_found\n" |
|
|
printf "$w_l SVN Backup :$r_l $txt_not_found\n" |
|
|
sleep 3 |
|
|
sleep 3 |
|
|
|
@ -82,9 +82,10 @@ svnrestore(){ |
|
|
else |
|
|
else |
|
|
printf "$p_l\n $txt_no oscam-svn $txt_found\n$re_" |
|
|
printf "$p_l\n $txt_no oscam-svn $txt_found\n$re_" |
|
|
fi |
|
|
fi |
|
|
|
|
|
_nl |
|
|
untarsvn $1 |
|
|
untarsvn $1 |
|
|
[ -f "$svndir/config.h" ]&& printf "$w_l"" SVN Revision : $y_l""$("$svndir/config.sh" -r) restored\n\n$re_" |
|
|
#[ -f "$svndir/config.h" ]&& printf "$w_l"" SVN Revision : $y_l""$("$svndir/config.sh" -r) restored\n\n$re_" |
|
|
|
|
|
printf "\e[1A\t\t\t$y_l""restored\n\n$re_" |
|
|
[ -L "$workdir/lastbuild.log" ]&& rm "$workdir/lastbuild.log"; |
|
|
[ -L "$workdir/lastbuild.log" ]&& rm "$workdir/lastbuild.log"; |
|
|
[ -L "$workdir/lastpatch.log" ]&& rm "$workdir/lastpatch.log"; |
|
|
[ -L "$workdir/lastpatch.log" ]&& rm "$workdir/lastpatch.log"; |
|
|
[ -f "$workdir/SVN-IS-PATCHED" ] && rm -f "$workdir/SVN-IS-PATCHED"; |
|
|
[ -f "$workdir/SVN-IS-PATCHED" ] && rm -f "$workdir/SVN-IS-PATCHED"; |
|
|