38 lines
584 B
Bash
38 lines
584 B
Bash
|
|
|
|
### This is the template bash file used by cowtool ###
|
|
|
|
|
|
### Prep ###
|
|
startdir=$(pwd)
|
|
|
|
|
|
### Entering workspace ###
|
|
echo "Entering workspace..."
|
|
mkdir /sources/cowtool/buildspace
|
|
cd /sources/cowtool/buildspace
|
|
|
|
|
|
### Obtaining package source ###
|
|
echo "Fetching source..."
|
|
git clone <url> <name>
|
|
|
|
### Entering source ###
|
|
echo "Entering source..."
|
|
cd <name>
|
|
|
|
### Building package ###
|
|
echo "Building package..."
|
|
make
|
|
|
|
### Installing package ###
|
|
echo "Installing package..."
|
|
make install
|
|
|
|
### Cleaning up ###
|
|
echo "Cleaning up..."
|
|
cd $startdir
|
|
rm -rf /sources/cowtool/buildspace/<name>
|
|
|
|
|