build: renaming to sourcetrail
This commit is contained in:
+6
-6
@@ -19,28 +19,28 @@ then
|
||||
if [ "$2" = "test" ]
|
||||
then
|
||||
#echo "release test"
|
||||
cd bin/test && ../../build/Release/test/Coati_test
|
||||
cd bin/test && ../../build/Release/test/Sourcetrail_test
|
||||
elif [ "$2" = "keygen" ]
|
||||
then
|
||||
#echo "release keygen"
|
||||
cd bin/license_generator && ../../build/Release/license_generator/Coati_license_generator
|
||||
cd bin/license_generator && ../../build/Release/license_generator/Sourcetrail_license_generator
|
||||
else
|
||||
#echo "release app"
|
||||
cd bin/app && ../../build/Release/app/Coati
|
||||
cd bin/app && ../../build/Release/app/Sourcetrail
|
||||
fi
|
||||
elif [ "$1" = "debug" ] || [ "$1" = "d" ]
|
||||
then
|
||||
if [ "$2" = "test" ]
|
||||
then
|
||||
#echo "debug test"
|
||||
cd bin/test && ../../build/Debug/test/Coati_test
|
||||
cd bin/test && ../../build/Debug/test/Sourcetrail_test
|
||||
elif [ "$2" = "keygen" ]
|
||||
then
|
||||
#echo "debug keygen"
|
||||
cd bin/license_generator && ../../build/Debug/license_generator/Coati_license_generator
|
||||
cd bin/license_generator && ../../build/Debug/license_generator/Sourcetrail_license_generator
|
||||
else
|
||||
#echo "debug app"
|
||||
cd bin/app && ../../build/Debug/app/Coati
|
||||
cd bin/app && ../../build/Debug/app/Sourcetrail
|
||||
fi
|
||||
else
|
||||
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
|
||||
|
||||
+7
-7
@@ -13,33 +13,33 @@ then
|
||||
if [ "$2" = "test" ]
|
||||
then
|
||||
#echo "release test"
|
||||
cmake --build build/Release --target Coati_test
|
||||
cmake --build build/Release --target Sourcetrail_test
|
||||
elif [ "$2" = "keygen" ]
|
||||
then
|
||||
#echo "release keygen"
|
||||
cmake --build build/Release --target Coati_license_generator
|
||||
cmake --build build/Release --target Sourcetrail_license_generator
|
||||
else
|
||||
#echo "release app"
|
||||
cmake --build build/Release --target Coati
|
||||
cmake --build build/Release --target Sourcetrail
|
||||
fi
|
||||
elif [ "$1" = "debug" ] || [ "$1" = "d" ]
|
||||
then
|
||||
if [ "$2" = "test" ]
|
||||
then
|
||||
#echo "debug test"
|
||||
cmake --build build/Debug --target Coati_test
|
||||
cmake --build build/Debug --target Sourcetrail_test
|
||||
elif [ "$2" = "keygen" ]
|
||||
then
|
||||
#echo "debug keygen"
|
||||
cmake --build build/Debug --target Coati_license_generator
|
||||
cmake --build build/Debug --target Sourcetrail_license_generator
|
||||
else
|
||||
#echo "debug app"
|
||||
cmake --build build/Debug --target Coati
|
||||
cmake --build build/Debug --target Sourcetrail
|
||||
fi
|
||||
elif [ "$1" = "package" ] || [ "$1" = "p" ]
|
||||
then
|
||||
cmake --build build/Release --target package
|
||||
mkdir -p distr && mv build/Release/Coati*.tar.gz distr #&& cp build/Release/Coati*.deb distr
|
||||
mkdir -p distr && mv build/Release/Sourcetrail*.tar.gz distr #&& cp build/Release/Sourcetrail*.deb distr
|
||||
echo "Packages copied into the distr folder"
|
||||
elif [ "$1" = "all" ] || [ "$1" = "a" ]
|
||||
then
|
||||
|
||||
@@ -16,10 +16,10 @@ convert $ICON_INPUT_PATH/logo_1024_1024.png -resize 64x64 $ICON_SIZES_PATH/icon_
|
||||
convert $ICON_INPUT_PATH/logo_1024_1024.png -resize 128x128 $ICON_SIZES_PATH/icon_128.png
|
||||
convert $ICON_INPUT_PATH/logo_1024_1024.png -resize 256x256 $ICON_SIZES_PATH/icon_256.png
|
||||
|
||||
convert $ICON_SIZES_PATH/icon_16.png $ICON_SIZES_PATH/icon_24.png $ICON_SIZES_PATH/icon_32.png $ICON_SIZES_PATH/icon_40.png $ICON_SIZES_PATH/icon_48.png $ICON_SIZES_PATH/icon_64.png $ICON_SIZES_PATH/icon_128.png $ICON_SIZES_PATH/icon_256.png -colors 256 $ICON_BUILD_PATH/coati.ico
|
||||
convert $ICON_SIZES_PATH/icon_16.png $ICON_SIZES_PATH/icon_24.png $ICON_SIZES_PATH/icon_32.png $ICON_SIZES_PATH/icon_40.png $ICON_SIZES_PATH/icon_48.png $ICON_SIZES_PATH/icon_64.png $ICON_SIZES_PATH/icon_128.png $ICON_SIZES_PATH/icon_256.png -colors 256 $ICON_BUILD_PATH/sourcetrail.ico
|
||||
|
||||
cp $ICON_BUILD_PATH/coati.ico $MY_PATH/../build/win32
|
||||
cp $ICON_BUILD_PATH/coati.ico $MY_PATH/../build/win64
|
||||
cp $ICON_BUILD_PATH/sourcetrail.ico $MY_PATH/../build/win32
|
||||
cp $ICON_BUILD_PATH/sourcetrail.ico $MY_PATH/../build/win64
|
||||
|
||||
rm -rf $ICON_SIZES_PATH
|
||||
rm -rf $ICON_BUILD_PATH
|
||||
|
||||
+21
-21
@@ -57,41 +57,41 @@ fi
|
||||
# CLEANING THE SOLUTIONS
|
||||
if [ $REBUILD = true ]; then
|
||||
echo -e "$INFO cleaning the solution"
|
||||
"devenv.com" build/win32/Coati.sln //clean Release
|
||||
"devenv.com" build/win64/Coati.sln //clean Release
|
||||
"devenv.com" build/win32/Sourcetrail.sln //clean Release
|
||||
"devenv.com" build/win64/Sourcetrail.sln //clean Release
|
||||
fi
|
||||
|
||||
|
||||
# BUILDING THE EXECUTABLES
|
||||
echo -e "$INFO building the app (32 bit)"
|
||||
"devenv.com" build/win32/Coati.sln //build Release //project build/win32/Coati.vcxproj
|
||||
"devenv.com" build/win32/Sourcetrail.sln //build Release //project build/win32/Sourcetrail.vcxproj
|
||||
echo -e "$INFO building the app (64 bit)"
|
||||
"devenv.com" build/win64/Coati.sln //build Release //project build/win64/Coati.vcxproj
|
||||
"devenv.com" build/win64/Sourcetrail.sln //build Release //project build/win64/Sourcetrail.vcxproj
|
||||
|
||||
|
||||
# CREATING DATABASES
|
||||
if [ $UPDATE_DATABASES = true ]; then
|
||||
echo -e "$INFO creating databases"
|
||||
|
||||
rm bin/app/user/projects/tictactoe/tictactoe.coatidb
|
||||
rm bin/app/user/projects/tutorial/tutorial.coatidb
|
||||
rm bin/app/user/projects/javaparser/javaparser.coatidb
|
||||
rm bin/app/user/projects/tictactoe/tictactoe.srctrldb
|
||||
rm bin/app/user/projects/tutorial/tutorial.srctrldb
|
||||
rm bin/app/user/projects/javaparser/javaparser.srctrldb
|
||||
rm -rf temp
|
||||
|
||||
mkdir -p temp
|
||||
cd temp
|
||||
|
||||
echo -e "$INFO saving license key"
|
||||
../build/win32/Release/app/Coati.exe -z ../script/license.txt
|
||||
../build/win32/Release/app/Sourcetrail.exe -z ../script/license.txt
|
||||
|
||||
echo -e "$INFO creating database for tictactoe"
|
||||
../build/win32/Release/app/Coati.exe -p ../bin/app/user/projects/tictactoe/tictactoe.coatiproject -d
|
||||
../build/win32/Release/app/Sourcetrail.exe -p ../bin/app/user/projects/tictactoe/tictactoe.srctrlprj -d
|
||||
|
||||
echo -e "$INFO creating database for tutorial"
|
||||
../build/win32/Release/app/Coati.exe -p ../bin/app/user/projects/tutorial/tutorial.coatiproject -d
|
||||
../build/win32/Release/app/Sourcetrail.exe -p ../bin/app/user/projects/tutorial/tutorial.srctrlprj -d
|
||||
|
||||
echo -e "$INFO creating database for javaparser"
|
||||
../build/win32/Release/app/Coati.exe -p ../bin/app/user/projects/javaparser/javaparser.coatiproject -d
|
||||
../build/win32/Release/app/Sourcetrail.exe -p ../bin/app/user/projects/javaparser/javaparser.srctrlprj -d
|
||||
|
||||
cd ..
|
||||
rm -rf temp
|
||||
@@ -112,7 +112,7 @@ VERSION_STRING="${VERSION_STRING//./_}"
|
||||
VERSION_STRING="${VERSION_STRING%_*}"
|
||||
|
||||
echo -e "$INFO creating package folder for win32"
|
||||
APP_PACKAGE_NAME_WIN32=Coati_${VERSION_STRING}_32bit
|
||||
APP_PACKAGE_NAME_WIN32=Sourcetrail_${VERSION_STRING}_32bit
|
||||
APP_PACKAGE_DIR_WIN32=release/$APP_PACKAGE_NAME_WIN32
|
||||
|
||||
rm -rf $APP_PACKAGE_DIR_WIN32
|
||||
@@ -133,11 +133,11 @@ cp -u -r ide_plugins/sublime_text/* $APP_PACKAGE_DIR_WIN32/plugins/sublime_text/
|
||||
mkdir -p $APP_PACKAGE_DIR_WIN32/plugins/vim/
|
||||
cp -u -r ide_plugins/vim/* $APP_PACKAGE_DIR_WIN32/plugins/vim/
|
||||
mkdir -p $APP_PACKAGE_DIR_WIN32/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs.vsix $APP_PACKAGE_DIR_WIN32/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/sourcetrail_plugin_vs.vsix $APP_PACKAGE_DIR_WIN32/plugins/visual_studio/
|
||||
|
||||
|
||||
echo -e "$INFO creating package folder for win64"
|
||||
APP_PACKAGE_NAME_WIN64=Coati_${VERSION_STRING}_64bit
|
||||
APP_PACKAGE_NAME_WIN64=Sourcetrail_${VERSION_STRING}_64bit
|
||||
APP_PACKAGE_DIR_WIN64=release/$APP_PACKAGE_NAME_WIN64
|
||||
|
||||
rm -rf $APP_PACKAGE_DIR_WIN64
|
||||
@@ -158,22 +158,22 @@ cp -u -r ide_plugins/sublime_text/* $APP_PACKAGE_DIR_WIN64/plugins/sublime_text/
|
||||
mkdir -p $APP_PACKAGE_DIR_WIN64/plugins/vim/
|
||||
cp -u -r ide_plugins/vim/* $APP_PACKAGE_DIR_WIN64/plugins/vim/
|
||||
mkdir -p $APP_PACKAGE_DIR_WIN64/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs.vsix $APP_PACKAGE_DIR_WIN64/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/sourcetrail_plugin_vs.vsix $APP_PACKAGE_DIR_WIN64/plugins/visual_studio/
|
||||
|
||||
|
||||
# PACKAGING COATI
|
||||
echo -e "$INFO packaging coati"
|
||||
# PACKAGING SOURCETRAIL
|
||||
echo -e "$INFO packaging sourcetrail"
|
||||
cd ./release/
|
||||
|
||||
winrar a -afzip Coati_${VERSION_STRING}_Windows_32bit.zip $APP_PACKAGE_NAME_WIN32
|
||||
winrar a -afzip Coati_${VERSION_STRING}_Windows_64bit.zip $APP_PACKAGE_NAME_WIN64
|
||||
winrar a -afzip Sourcetrail_${VERSION_STRING}_Windows_32bit.zip $APP_PACKAGE_NAME_WIN32
|
||||
winrar a -afzip Sourcetrail_${VERSION_STRING}_Windows_64bit.zip $APP_PACKAGE_NAME_WIN64
|
||||
|
||||
|
||||
# STORING PDB FILES
|
||||
mkdir PDB_${APP_PACKAGE_NAME_WIN32}
|
||||
cp -u -r ../build/win32/Release/app/Coati.pdb PDB_${APP_PACKAGE_NAME_WIN32}/
|
||||
cp -u -r ../build/win32/Release/app/Sourcetrail.pdb PDB_${APP_PACKAGE_NAME_WIN32}/
|
||||
mkdir PDB_${APP_PACKAGE_NAME_WIN64}
|
||||
cp -u -r ../build/win64/Release/app/Coati.pdb PDB_${APP_PACKAGE_NAME_WIN64}/
|
||||
cp -u -r ../build/win64/Release/app/Sourcetrail.pdb PDB_${APP_PACKAGE_NAME_WIN64}/
|
||||
|
||||
cd ../
|
||||
|
||||
|
||||
Reference in New Issue
Block a user