← Back to team overview

torios team mailing list archive

Re: latest manual build

 

Hi Paul,
Sure thing...
(edited below)
On 01/18/2015 12:10 PM, Paul Sutton wrote:
> Just uploaded my latest build to my git hub
>
> I have written a shell script to help me do this
>
#!/bin/bash
MESSAGE="torios script"  ## default message
usage(){
echo "Usage: $0 [Commit Message]
If no message is provided
$MESSAGE will be used"

exit
}

if [ "$1" != "" ]
then
    if [ "$1" == "--help" ]
    then
        usage
    fi
else
 MESSAGE="$1"
fi
git ignore $0
# making index
makeindex torios.idx
makeindex torios-testing-manual.idx# echo add to git hub
git add .  ## this should add EVERYTHING
git stage .  ## this should stage EVERYTHING
git commit -m "${MESSAGE}"
git push
echo "done"



I added a parameter so you can just run
./scriptname.sh "Message for this commit"
>
> If anyone can suggest a better way to write this, suggestions welcome,
>  right now the above works.
>
> thanks
>
> Paul
>

-- 
Regards

-Israel
ToriOS Team


References