SBoupgrade - Atualize seu SlackBuild!
Publicado por edps em 23/04/2015
[ Hits: 2.020 ]
Blog: https://edpsblog.wordpress.com/
#!/bin/bash # Script written by Michales Michaloudes (korgie@gmail.com) for the SlackBuild community. # Feel free to modify it, or to take the project to higher levels :) # # Use it at your own risk. # Variables SOURCES=${SOURCES:-../../sources} # the folder with the sources. I suggest to use relative path. TEMPLATEFOLDER=${TEMPLATEFOLDER:-~/SlackBuilds} # the folder with template.README template.SlackBuild template.info template.slack-desc if [ "$2" = "" ]; then APPNAME=$(ls *.SlackBuild | gawk -F'.SlackBuild' ' { print $1 } ') echo "You didn't provided program name, guessed: $APPNAME." else APPNAME=$2 fi . $APPNAME.info if [ "$1" = "" ]; then NEWVERSION=$(ls -t1 $APPNAME*.tar* | head -1 | sed -e 's/.*-//' -e 's/.tar.*//g') echo "You didn't provided version, guessed: $NEWVERSION." else NEWVERSION=$1 fi echo -e "\nUpdating with $APPNAME-$NEWVERSION." SOURCE=$(ls $APPNAME-$NEWVERSION.tar.* | sort | head -1) # Append the md5sum to the info file if [ -e $SOURCE ]; then MD5SUMPRG=$(md5sum $SOURCE | cut -c 1-32) else echo "ERROR, source absent?" exit 1 fi #----------------------------- #- SED bonanza - #----------------------------- # All files like slack-desc, Slackbuild, info will have the correct application name to be compiled # find $TEMPLATEFOLDER/$NEWVERSION/$APPNAME -name $APPNAME.\* -exec sed -i "s/appname/$APPNAME/g" {} \; # APPURL=$(cat ${SOURCES}/${APPNAME}.link) sed -i "s/VERSION:-.*}/VERSION:-$NEWVERSION}/g" ./$APPNAME.SlackBuild sed -i "s/VERSION=\".*\"/VERSION=\"$NEWVERSION\"/g" ./$APPNAME.info sed -i "s/MD5SUM=\".*\"/MD5SUM=\"${MD5SUMPRG}\"/g" ./$APPNAME.info sed -i "s,$VERSION,$NEWVERSION,g" ./$APPNAME.info echo echo "Check for yourself for errors." grep $APPNAME $APPNAME.info grep VERSION $APPNAME.SlackBuild # vi $APPNAME.info
Arch Linux: /etc/rc.sysinit mountpoint not found
Painel Tint2 com lançadores de aplicativos
sources.list para o Ubuntu 10.10 Maverick Meerkat
Kernel 3.19.3-smp no Slackware Current
Excluindo arquivos por data: find + xargs + rm
Desencurtar links via terminal
Baixando arquivos grandes demais para a sua conexão.
Perseidas - Snort + Suricata + ClamAV + Fail2ban
Nenhum comentário foi encontrado.
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando e usando o Dconf Editor, o "regedit" para Linux
Como instalar o navegador TOR no seu Linux
Instalando Zoom Client no Ubuntu 24.04 LTS
Sistema da Coréia do Norte - Red Star OS (74)
Manjaro Substituindo Ubuntu no Desktop [RESOLVIDO] (18)