/scripts

Personal collection of scripts.

Primary LanguageShell

scripts

Personal collection of scripts.

git-pull-all.sh

This script run git pull to each directories in ~/git-repositories.

$ ./git-pull-all.sh

create-ltsi-kernel.sh

This script is to create ltsi-kernel tree by TAG name.

Before you run this scirpt, you need to prepare ~/git-repositories directory.

Then, run script with TAG name.

$ ./create-ltsi-kernel.sh ${TAG_NAME}

EX: ${TAG_NAME} is v4.1.17.

If you have a local git server for linux-stable.git and ltsi-kernel.git,

please set $LOCAL_GIT_SERVER in create-ltsi-kernel.sh.

send-done.sh

Send done mail by this script.

Please set NOPASSWD to /usr/sbin/sendmail in /etc/sudoers like below.

${USER} ALL=(ALL;ALL) NOPASSWD: /usr/sbin/sendmail

And please set MAIL_ADDRESS as destination address in send-done.sh.

Then, run this script.

$ send-done.sh

I use this script for notify when a commnad finished in nohup like following.

$ nohup sh -c 'A;send-done.sh'&