Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crave: Do not modify repo if it is running on Devspace CLI #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions setup/android_build_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,9 @@ if [[ "$(command -v make)" ]]; then
fi

echo "Installing repo"
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
if [ "${DCDEVSPACE}" == "1" ]; then
echo "Modifying Repo on Crave Devspace CLI is not allowed!"
else
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
fi
8 changes: 6 additions & 2 deletions setup/clear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ sudo udevadm control --reload-rules

# REPO
echo "Setting up Repo..."
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
if [ "${DCDEVSPACE}" == "1" ]; then
echo "Modifying Repo on Crave Devspace CLI is not allowed!"
else
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
fi

echo "You're now ready to start contributing to AOSP!"

Expand Down
8 changes: 6 additions & 2 deletions setup/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ sudo ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libtinfo.so.5

# Repo
echo "Installing Git Repository Tool"
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
if [ "${DCDEVSPACE}" == "1" ]; then
echo "Modifying Repo on Crave Devspace CLI is not allowed!"
else
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
fi

echo -e "Setting up udev rules for ADB!"
sudo curl --create-dirs -L -o /etc/udev/rules.d/51-android.rules -O -L https://raw.githubusercontent.com/M0Rf30/android-udev-rules/master/51-android.rules
Expand Down
8 changes: 6 additions & 2 deletions setup/opensuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ sudo ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libtinfo.so.5

# Repo
echo "Installing Git Repository Tool"
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
if [ "${DCDEVSPACE}" == "1" ]; then
echo "Modifying Repo on Crave Devspace CLI is not allowed!"
else
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
fi

echo -e "Setting up udev rules for ADB!"
sudo curl --create-dirs -L -o /etc/udev/rules.d/51-android.rules -O -L https://raw.githubusercontent.com/M0Rf30/android-udev-rules/master/51-android.rules
Expand Down
8 changes: 6 additions & 2 deletions setup/solus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ sudo chown root /etc/udev/rules.d/51-android.rules
sudo usysconf run -f

echo "Installing repo"
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+x /usr/local/bin/repo
if [ "${DCDEVSPACE}" == "1" ]; then
echo "Modifying Repo on Crave Devspace CLI is not allowed!"
else
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+x /usr/local/bin/repo
fi

echo "You are now ready to build Android!"