Created
July 17, 2023 11:27
-
-
Save shubhamkumar13/a48fbd87d62697eb3b852fadf4b29609 to your computer and use it in GitHub Desktop.
test file for ligo package manager
This file contains hidden or 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
function github_ssh() { | |
echo "[email protected]:ligolang/$1.git" | |
} | |
function dir() { | |
echo "$HOME/nuke/test_lpm/$1" | |
} | |
DAO_JSLIGO=dao-jsligo | |
DAO_CAMELIGO=dao-cameligo | |
PERMIT_JSLIGO=permit-jsligo | |
PERMIT_CAMELIGO=permit-cameligo | |
rm -rf "$(dir $DAO_JSLIGO)" | |
rm -rf "$(dir $DAO_CAMELIGO)" | |
rm -rf "$(dir $PERMIT_JSLIGO)" | |
rm -rf "$(dir $PERMIT_CAMELIGO)" | |
# Clone GITHUB repo | |
git clone "$(github_ssh $DAO_JSLIGO)" "$(dir $DAO_JSLIGO)" | |
git clone "$(github_ssh $DAO_CAMELIGO)" "$(dir $DAO_CAMELIGO)" | |
git clone "$(github_ssh $PERMIT_JSLIGO)" "$(dir $PERMIT_JSLIGO)" | |
git clone "$(github_ssh $PERMIT_CAMELIGO)" "$(dir $PERMIT_CAMELIGO)" | |
# try installing and compiling contract | |
cd "$(dir $DAO_JSLIGO)" | |
ligo install && ligo compile contract src/main.jsligo | |
cd "$(dir "")" | |
cd "$(dir $DAO_CAMELIGO)" | |
ligo install && ligo compile contract src/main.mligo | |
cd "$(dir "")" | |
cd "$(dir $PERMIT_JSLIGO)" | |
ligo install && ligo compile contract src/main.jsligo | |
cd "$(dir "")" | |
cd "$(dir $PERMIT_CAMELIGO)" | |
ligo install && ligo compile contract src/main.mligo | |
cd "$(dir "")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment