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