From 2f77e0027781cd19f1f813dedf01caa2670c362d Mon Sep 17 00:00:00 2001 From: YoruNoHikage Date: Wed, 27 Jan 2016 21:56:02 +0100 Subject: [PATCH] Revert useless change in build script --- build.sh | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/build.sh b/build.sh index 6dfa969..15abf80 100755 --- a/build.sh +++ b/build.sh @@ -1,40 +1,12 @@ #!/bin/bash -platform='unknown' -unamestr=$(uname) -if [[ "$unamestr" == 'Linux' ]]; then - platform='linux' -elif [[ "$unamestr" == 'Darwin' ]]; then - platform='mac' -fi - versionNumber=$(sed -ne '/em:version/{s/.*\(.*\)<\/em:version>.*/\1/p;q;}' install.rdf) -read -p "Enter your consumer key [Echofon's one]: " consumerKey -read -p "Enter your consumer secret [Echofon's one]: " consumerSecret - rm -rf build mkdir -p build/src -dirs='chrome/ components/ defaults/ modules/ platform/ chrome.manifest install.rdf' - -if [[ $platform == 'mac' ]]; then - rsync -rR $dirs build/src -elif [[ $platform == 'linux' ]]; then - cp -r --parents $dirs build/src -fi - -cd build/src -if [[ -n consumerKey && -n consumerSecret ]]; then - if [[ $platform == 'mac' ]]; then - sed -i '' "s/%CONSUMER_KEY%/$consumerKey/g" modules/TwitterClient.jsm - sed -i '' "s/%CONSUMER_SECRET%/$consumerSecret/g" modules/EchofonSign.jsm - elif [[ $platform == 'linux' ]]; then - sed -i "s/%CONSUMER_KEY%/$consumerKey/g" modules/TwitterClient.jsm - sed -i "s/%CONSUMER_SECRET%/$consumerSecret/g" modules/EchofonSign.jsm - fi -fi +cp -r --parents chrome/ components/ defaults/ modules/ platform/ chrome.manifest install.rdf build/src -cd chrome/Echofon +cd build/src/chrome/Echofon zip -r -9 ../Echofon.jar * cd .. rm -rf Echofon