This repository has been archived by the owner on Feb 27, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unity-singlet] Use new version comparison script
- Loading branch information
Xiao-Long Chen
committed
Jan 26, 2013
1 parent
b8e71e1
commit 77a5ac0
Showing
1 changed file
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,8 @@ | |||
#!/usr/bin/env bash | #!/usr/bin/env bash | ||
|
|
||
source "$(dirname ${0})/PKGBUILD" | source "$(dirname ${0})/PKGBUILD" | ||
|
source "$(dirname ${0})/../version_checker.sh" | ||
echo "Getting latest Ubuntu version..." | |||
UBUNTU_VER=($(wget -q 'http://packages.ubuntu.com/quantal/source/unity-singlet' -O - | sed -n 's/.*>unity-singlet_\(.*\)-\(.*\)\.diff\.gz<.*/\1 \2/p')) | |||
|
|||
echo "Getting latest upstream version..." | |||
UPSTREAM_VER=$(wget -q 'https://launchpad.net/singlet/+download' -O - | sed -n 's/.*unity-singlet_\(.*\)\.tar\.gz.*/\1/p' | head -n 1) | |||
|
|||
echo "" | |||
|
|
||
echo -e "PKGBUILD version: ${pkgver}" | echo -e "PKGBUILD version: ${pkgver}" | ||
echo -e "Upstream version: ${UPSTREAM_VER}" | echo -e "Upstream version: $(get_launchpad_version singlet unity-singlet)" | ||
echo -e "Ubuntu version: ${UBUNTU_VER[@]}" | echo -e "Ubuntu version: $(get_ubuntu_version unity-singlet ${1:-raring})" |