build: renaming to sourcetrail
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# get the current directory
|
||||
SOURCE="${0}"
|
||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
||||
done
|
||||
COATI_PATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
#setup data folder
|
||||
#if [ ! -d "${HOME}/.config/coati" ]; then
|
||||
## Control will enter here if $DIRECTORY doesn't exist.
|
||||
#mkdir -p "${HOME}/.config/coati"
|
||||
#echo "First start of Coati from this user, copy default configfiles to ~/.config/coati"
|
||||
#fi
|
||||
|
||||
#cp -rn "$COATI_PATH/user"/* "${HOME}/.config/coati/"
|
||||
|
||||
export LD_LIBRARY_PATH="$COATI_PATH/lib:$LD_LIBRARY_PATH"
|
||||
export QT_XKB_CONFIG_ROOT="/usr/share/X11/xkb:$QT_XKB_CONFIG_ROOT"
|
||||
export QT_QPA_PLATFORM_PLUGIN_PATH="$COATI_PATH/lib/platforms"
|
||||
export QT_QPA_FONTDIR="$COATI_PATH/data/fonts:$QT_QPA_FONTDIR"
|
||||
exec "$COATI_PATH/Coati" $@
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# get the current directory
|
||||
SOURCE="${0}"
|
||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
||||
done
|
||||
SOURCETRAIL_PATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
#setup data folder
|
||||
#if [ ! -d "${HOME}/.config/sourcetrail" ]; then
|
||||
## Control will enter here if $DIRECTORY doesn't exist.
|
||||
#mkdir -p "${HOME}/.config/sourcetrail"
|
||||
#echo "First start of Sourcetrail from this user, copy default configfiles to ~/.config/sourcetrail"
|
||||
#fi
|
||||
|
||||
#cp -rn "$SOURCETRAIL_PATH/user"/* "${HOME}/.config/sourcetrail/"
|
||||
|
||||
export LD_LIBRARY_PATH="$SOURCETRAIL_PATH/lib:$LD_LIBRARY_PATH"
|
||||
export QT_XKB_CONFIG_ROOT="/usr/share/X11/xkb:$QT_XKB_CONFIG_ROOT"
|
||||
export QT_QPA_PLATFORM_PLUGIN_PATH="$SOURCETRAIL_PATH/lib/platforms"
|
||||
export QT_QPA_FONTDIR="$SOURCETRAIL_PATH/data/fonts:$QT_QPA_FONTDIR"
|
||||
exec "$SOURCETRAIL_PATH/Sourcetrail" $@
|
||||
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-coati">
|
||||
<comment>Coati Project File</comment>
|
||||
<icon name="project-coati"/>
|
||||
<glob-deleteall/>
|
||||
<glob pattern="*.coatiproject"/>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-coati">
|
||||
<comment>Coati Database</comment>
|
||||
<glob-deleteall/>
|
||||
<glob pattern="*.coatidb"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
@@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=Coati
|
||||
GenericName=Coati
|
||||
X-GNOME-FullName=Coati
|
||||
Comment=Code Explorer
|
||||
Exec=/usr/bin/coati
|
||||
Icon=coati
|
||||
Terminal=true
|
||||
Type=Application
|
||||
MimeType=application/x-coati;
|
||||
StartupNotify=true
|
||||
@@ -2,19 +2,19 @@
|
||||
MY_PATH=`dirname "$0"`
|
||||
MY_PATH=../$MY_PATH
|
||||
|
||||
echo "Remove coati form system"
|
||||
echo "Remove sourcetrail form system"
|
||||
printf 'enter [y/n] '
|
||||
read ans
|
||||
case ${ans:=y} in [yY]*) ;; *) exit ;; esac
|
||||
|
||||
echo "Run this script as root"
|
||||
|
||||
rm /usr/bin/coati
|
||||
rm /usr/share/mime/packages/coati-mime.xml
|
||||
rm /usr/share/applications/coati.desktop
|
||||
rm /usr/share/icons/coati.png
|
||||
rm /usr/share/icons/project-coati.png
|
||||
rm /opt/coati -rf
|
||||
rm /usr/bin/sourcetrail
|
||||
rm /usr/share/mime/packages/sourcetrail-mime.xml
|
||||
rm /usr/share/applications/sourcetrail.desktop
|
||||
rm /usr/share/icons/sourcetrail.png
|
||||
rm /usr/share/icons/project-sourcetrail.png
|
||||
rm /opt/sourcetrail -rf
|
||||
update-mime/database /usr/share/mime
|
||||
update-desktop-database
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
mkdir -p setup/Linux/lib
|
||||
ldd bin/app/Release/Coati | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' setup/Linux/lib
|
||||
ldd bin/app/Release/Sourcetrail | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' setup/Linux/lib
|
||||
|
||||
# extra files needed and not copied with the lines above
|
||||
cp /usr/lib/qt/plugins/platforms/libqxcb.so setup/Linux
|
||||
|
||||
@@ -9,13 +9,13 @@ case ${ans:=y} in [yY]*) ;; *) exit ;; esac
|
||||
|
||||
echo "Run this script as root"
|
||||
|
||||
cp -rf $MY_PATH/ /opt/coati/ > /dev/null
|
||||
cp $MY_PATH/setup/coati-mime.xml /usr/share/mime/packages > /dev/null
|
||||
cp $MY_PATH/setup/coati.desktop /usr/share/applications/ > /dev/null
|
||||
cp $MY_PATH/data/gui/icon/logo_1024_1024.png /usr/share/icons/coati.png > /dev/null
|
||||
cp $MY_PATH/data/gui/icon/project_256_256.png /usr/share/icons/project-coati.png > /dev/null
|
||||
cp -rf $MY_PATH/ /opt/sourcetrail/ > /dev/null
|
||||
cp $MY_PATH/setup/sourcetrail-mime.xml /usr/share/mime/packages > /dev/null
|
||||
cp $MY_PATH/setup/sourcetrail.desktop /usr/share/applications/ > /dev/null
|
||||
cp $MY_PATH/data/gui/icon/logo_1024_1024.png /usr/share/icons/sourcetrail.png > /dev/null
|
||||
cp $MY_PATH/data/gui/icon/project_256_256.png /usr/share/icons/project-sourcetrail.png > /dev/null
|
||||
update-mime-database /usr/share/mime > /dev/null
|
||||
update-desktop-database > /dev/null
|
||||
|
||||
ln -f -s /opt/coati/Coati.sh /usr/bin/coati > /dev/null
|
||||
ln -f -s /opt/sourcetrail/Sourcetrail.sh /usr/bin/sourcetrail > /dev/null
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@ printf 'enter [y/n] '
|
||||
read ans
|
||||
case ${ans:=y} in [yY]*) ;; *) exit ;; esac
|
||||
|
||||
rm -rf ~/.config/coati
|
||||
rm -rf ~/.config/sourcetrail
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-sourcetrail">
|
||||
<comment>Sourcetrail Project File</comment>
|
||||
<icon name="project-sourcetrail"/>
|
||||
<glob-deleteall/>
|
||||
<glob pattern="*.srctrlprj"/>
|
||||
<glob pattern="*.coatiproject"/>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-sourcetrail">
|
||||
<comment>Sourcetrail Database</comment>
|
||||
<glob-deleteall/>
|
||||
<glob pattern="*.srctrldb"/>
|
||||
<glob pattern="*.coatidb"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
@@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Name=Sourcetrail
|
||||
GenericName=Sourcetrail
|
||||
X-GNOME-FullName=Sourcetrail
|
||||
Comment=Code Explorer
|
||||
Exec=/usr/bin/sourcetrail
|
||||
Icon=sourcetrail
|
||||
Terminal=true
|
||||
Type=Application
|
||||
MimeType=application/x-sourcetrail;
|
||||
StartupNotify=true
|
||||
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Coati</string>
|
||||
<string>Sourcetrail</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
@@ -13,7 +13,7 @@
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.coati</string>
|
||||
<string>com.sourcetrail</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleLongVersionString</key>
|
||||
@@ -46,9 +46,10 @@
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Coati Project</string>
|
||||
<string>Sourcetrail Project</string>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>srctrlprj</string>
|
||||
<string>coatiproject</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
|
||||
@@ -59,7 +59,7 @@ mkdir -p $RES_DIR
|
||||
|
||||
echo -e $INFO "Copying top level contents."
|
||||
mkdir -p $PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -r ../../../ide_plugins/vs/coati_plugin_vs.vsix $PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -r ../../../ide_plugins/vs/sourcetrail_plugin_vs.vsix $PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -R ../../../ide_plugins/sublime_text $PACKAGE_DIR/plugins/sublime_text/
|
||||
cp -R ../../../ide_plugins/vim $PACKAGE_DIR/plugins/vim/
|
||||
cp -R ../../../ide_plugins/atom $PACKAGE_DIR/plugins/atom/
|
||||
|
||||
@@ -38,7 +38,7 @@ function build_type {
|
||||
echo -e $INFO Starting with buildtype: $1
|
||||
if [ "$PLATFORM" == "Windows" ]
|
||||
then
|
||||
echo -e $INFO Builing the Coati VS Solution
|
||||
echo -e $INFO Builing the Sourcetrail VS Solution
|
||||
cmake --build build/win32 --config $1
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
@@ -46,9 +46,9 @@ function build_type {
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
build Coati $1
|
||||
build Coati_test $1
|
||||
build Coati_license_generator $1
|
||||
build Sourcetrail $1
|
||||
build Sourcetrail_test $1
|
||||
build Sourcetrail_license_generator $1
|
||||
run_tests $1
|
||||
fi
|
||||
}
|
||||
@@ -57,8 +57,8 @@ function run_tests {
|
||||
echo -e $INFO Run $1 Tests
|
||||
|
||||
cd bin/test
|
||||
echo $1/Coati_test
|
||||
../../build/$1/test/Coati_test
|
||||
echo $1/Sourcetrail_test
|
||||
../../build/$1/test/Sourcetrail_test
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo -e $PASS $1 Tests passed
|
||||
|
||||
Reference in New Issue
Block a user