mid-kid
9 years ago
6 changed files with 26 additions and 27 deletions
@ -1,4 +1,4 @@ |
|||
compile_python() { |
|||
_func_ver="$1"; shift |
|||
python$_func_ver setup.py install --prefix="$dir_prefix" --root="$dir_install" $@ |
|||
local ver="$1"; shift |
|||
python$ver setup.py install --prefix="$dir_prefix" --root="$dir_install" $@ |
|||
} |
|||
|
@ -1,6 +1,6 @@ |
|||
compile_qt() { |
|||
_func_ver="$1"; shift |
|||
qmake-qt$_func_ver PREFIX="$dir_prefix" build_mode=release build_type=shared $@ |
|||
local ver="$1"; shift |
|||
qmake-qt$ver PREFIX="$dir_prefix" build_mode=release build_type=shared $@ |
|||
make |
|||
make INSTALL_ROOT="$dir_install" install |
|||
} |
|||
|
@ -1,15 +1,15 @@ |
|||
download_git() { |
|||
_func_reponame="$(basename "$1")" |
|||
_func_dir="$dir_source/$name/$_func_reponame-$2" |
|||
local reponame="$(basename "$1")" |
|||
local dir="$dir_source/$name/$_func_reponame-$2" |
|||
|
|||
if [ ! -d "$_func_dir" ]; then |
|||
rm -rf "$_func_dir" |
|||
git clone --recursive --depth=1 -b "v$2" "$1" "$_func_dir" |
|||
if [ ! -d "$dir" ]; then |
|||
rm -rf "$dir" |
|||
git clone --recursive --depth=1 -b "v$2" "$1" "$dir" |
|||
else |
|||
cd "$_func_dir" |
|||
cd "$dir" |
|||
git checkout "tags/v$2" |
|||
cd "$OLDPWD" |
|||
fi |
|||
|
|||
getfile "$_func_reponame-$2" |
|||
getfile "$reponame-$2" |
|||
} |
|||
|
Loading…
Reference in new issue