From 53c9dbcf304d2af666db678c2c9dbcb0f0240034 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Tue, 19 Apr 2022 09:40:41 +0530 Subject: [PATCH] removes unused script --- startDevEnv | 21 ------- utils/setupDevEnv | 150 ---------------------------------------------- 2 files changed, 171 deletions(-) delete mode 100755 startDevEnv delete mode 100755 utils/setupDevEnv diff --git a/startDevEnv b/startDevEnv deleted file mode 100755 index 20ee6dd..0000000 --- a/startDevEnv +++ /dev/null @@ -1,21 +0,0 @@ -# usage: startDevEnv (FREE | COMMERCIAL | COMMERCIAL_TRIAL) (DOWNGRADE | STOP | NA) - -function cleanup { - ./utils/cleanDevEnv -} - -trap cleanup EXIT - -if [[ $? -ne 0 ]] -then - exit 1 -fi - -./utils/setupDevEnv - -# we wait for user to end the session -while [[ true ]] -do - echo "Running dev env" - sleep 2 -done \ No newline at end of file diff --git a/utils/setupDevEnv b/utils/setupDevEnv deleted file mode 100755 index a641fdb..0000000 --- a/utils/setupDevEnv +++ /dev/null @@ -1,150 +0,0 @@ -./gradlew clean -> version_temp.yaml -> config_temp.yaml - -prefix=`./utils/project-prefix` - -# add new line char at the end in case it's not there for looping -echo >> modules.txt - -# looping -cat modules.txt | while read line -do - if [[ ! -z "$line" ]] && [[ $line != //* ]] - then - while IFS=',' read -ra ADDR; do - counter=0 - for i in "${ADDR[@]}"; do - if [ $counter == 0 ] - then - repo_name="$i" - fi - counter=$(($counter+1)) - done - done <<< "$line" - - dir_name=$prefix-$repo_name - - if [[ $repo_name != "sqlite-plugin" ]] - then - # build - echo "" - echo "Building $dir_name..." - (cd $dir_name/ && ./runBuild noJarFolderChange) - fi - - # move jars to relevant place for testing - - if [[ $dir_name = *"-core" ]] - then - (cd $dir_name/cli/ && ./runBuild noJarFolderChange) - (cd $dir_name/downloader/ && ./runBuild noJarFolderChange) - mkdir core > /dev/null 2>&1 - cp $dir_name/build/libs/* core - cp $dir_name/build/dependencies/* core > /dev/null 2>&1 - - # add to version_temp.yaml - core_version=`cat $dir_name/build.gradle | grep -e "version =" -e "version="` - while IFS='"' read -ra ADDR; do - counter=0 - for i in "${ADDR[@]}"; do - if [ $counter == 1 ] - then - core_version=$i - fi - counter=$(($counter+1)) - done - done <<< "$core_version" - echo "core_version: $core_version" >> version_temp.yaml - - mkdir cli > /dev/null 2>&1 - cp $dir_name/cli/build/libs/* cli - cp $dir_name/cli/build/dependencies/* cli > /dev/null 2>&1 - - mkdir downloader > /dev/null 2>&1 - cp $dir_name/downloader/build/libs/* downloader - - cp $dir_name/install install - cp $dir_name/install.bat install.bat - - cp $dir_name/LICENSE.md LICENSE.md - elif [[ $dir_name = *"-plugin-interface" ]] - then - mkdir plugin-interface > /dev/null 2>&1 - cp $dir_name/build/libs/* plugin-interface - cp $dir_name/build/dependencies/* plugin-interface > /dev/null 2>&1 - - # add to version_temp.yaml - pi_version=`cat $dir_name/build.gradle | grep -e "version =" -e "version="` - while IFS='"' read -ra ADDR; do - counter=0 - for i in "${ADDR[@]}"; do - if [ $counter == 1 ] - then - pi_version=$i - fi - counter=$(($counter+1)) - done - done <<< "$pi_version" - echo "plugin_interface_version: $pi_version" >> version_temp.yaml - - elif [[ $repo_name != "sqlite-plugin" ]] - then - mkdir plugin > /dev/null 2>&1 - cp $dir_name/build/libs/* plugin - cp $dir_name/build/dependencies/* plugin > /dev/null 2>&1 - - - # add to version_temp.yaml - p_version=`cat $dir_name/build.gradle | grep -e "version =" -e "version="` - while IFS='"' read -ra ADDR; do - counter=0 - for i in "${ADDR[@]}"; do - if [ $counter == 1 ] - then - p_version=$i - fi - counter=$(($counter+1)) - done - done <<< "$p_version" - p_name=`cat $dir_name/build.gradle | grep -e "def pluginName =" -e "def pluginName="` - while IFS='"' read -ra ADDR; do - counter=0 - for i in "${ADDR[@]}"; do - if [ $counter == 1 ] - then - p_name=$i - fi - counter=$(($counter+1)) - done - done <<< "$p_name" - echo "plugin_version: $p_version" >> version_temp.yaml - echo "plugin_name: $p_name" >> version_temp.yaml - else - mkdir plugin > /dev/null 2>&1 - fi - - - # populate config file - - if [[ $dir_name = *"-core" ]] - then - cat $dir_name/devConfig.yaml >> config_temp.yaml - echo "" >> config_temp.yaml - echo "" >> config_temp.yaml - elif [[ $dir_name = *"-plugin-interface" ]] - then - continue=1 - elif [[ $repo_name != "sqlite-plugin" ]] - then - cat $dir_name/devConfig.yaml >> config_temp.yaml - `echo ""` >> config_temp.yaml - fi - fi -done - -# remove new line char from end for next use of this script -printf %s "$(< modules.txt)" > modules.txt - -mv version_temp.yaml version.yaml -mv config_temp.yaml config.yaml \ No newline at end of file