-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5a80bd
commit 1b92bd2
Showing
3 changed files
with
16 additions
and
14 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
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
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ cd "$DIR" | |
|
||
|
||
# Set up variables | ||
last_version="$(git tag -l --sort=v:refname | tail -1)" | ||
last_version="$(git tag | egrep '^[0-9]{4}[0-9]*$' | sort -n | tail -1)" | ||
amo_secret="$(cat amo.secret)" | ||
amo_key="$(cat amo.key)" | ||
github_token="$(cat github.token)" | ||
|
@@ -45,18 +45,17 @@ github_repo="$(cat github_repo.txt)" | |
|
||
# Update dactyl source | ||
cd dactyl | ||
hg revert --all | ||
hg pull | ||
hg update | ||
# git reset --hard | ||
# git checkout master | ||
# git pull | ||
|
||
# Get version number and exit if no changes | ||
version="$(hg log -r . --template '{rev}')" | ||
if [ "$last_version" = "$version" ]; then | ||
exit 0 | ||
fi | ||
# New version number | ||
version=$(expr $last_version + 1) | ||
version=7310 | ||
|
||
# Get max Firefox version | ||
max_fx_version="$(python "${DIR}"/max_firefox_version.py)" | ||
max_fx_version='56.*' | ||
|
||
# Modify install.rdf to change id, update URL, and max Firefox version | ||
sed -e 's/em:id="[email protected]"/em:id="'"$addon_id"'"/' \ | ||
|
@@ -90,6 +89,7 @@ sed -e 's#<em:updateLink>.*</em:updateLink>#<em:updateLink>https://github.com/'" | |
-i "${DIR}/update.rdf" | ||
|
||
# Push new update.rdf to GitHub | ||
cd "${DIR}" | ||
git commit -a -m "$version" | ||
git push | ||
git tag "$version" | ||
|