mirror of
https://github.com/tsingui/softcenter-1.git
synced 2024-12-27 20:25:17 +00:00
34 lines
510 B
Bash
34 lines
510 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
MODULE=aria2
|
||
|
VERSION=2.4
|
||
|
TITLE=Aria2
|
||
|
DESCRIPTION=linux下载利器
|
||
|
HOME_URL=Module_aria2.asp
|
||
|
|
||
|
|
||
|
# Check and include base
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
if [ "$MODULE" == "" ]; then
|
||
|
echo "module not found"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -f "$DIR/$MODULE/$MODULE/install.sh" ]; then
|
||
|
echo "install script not found"
|
||
|
exit 2
|
||
|
fi
|
||
|
|
||
|
# now include build_base.sh
|
||
|
. $DIR/../softcenter/build_base.sh
|
||
|
|
||
|
# change to module directory
|
||
|
cd $DIR
|
||
|
|
||
|
# do something here
|
||
|
|
||
|
do_build_result
|
||
|
|
||
|
sh backup.sh $MODULE
|