summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/create_linux_portable.sh
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:29 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:29 -0500
commit306d6d3ca9c9ad774d19135681a7f9805f77035f (patch)
treea3e36ac2cc769162c30a1bcc33e126f7a4f4ccea /SQLiteStudio3/create_linux_portable.sh
parent016003905ca0e8e459e3dc33e786beda8ec92f45 (diff)
Imported Upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'SQLiteStudio3/create_linux_portable.sh')
-rw-r--r--SQLiteStudio3/create_linux_portable.sh52
1 files changed, 27 insertions, 25 deletions
diff --git a/SQLiteStudio3/create_linux_portable.sh b/SQLiteStudio3/create_linux_portable.sh
index 8b7b8fe..3bcb87d 100644
--- a/SQLiteStudio3/create_linux_portable.sh
+++ b/SQLiteStudio3/create_linux_portable.sh
@@ -9,7 +9,7 @@ if [ "$#" -lt 2 ] || [ "$#" -gt 3 ]; then
exit 1
fi
-if [ "$#" -eq 3 ] && [ "$3" != "tgz" ] && [ "$3" != "dist" ]; then
+if [ "$#" -eq 3 ] && [ "$3" != "tgz" ] && [ "$3" != "dist" ] && [ "$3" != "dist_plugins" ]; then
printUsage
exit 1
fi
@@ -106,31 +106,33 @@ VERSION=`SQLiteStudio/sqlitestudiocli -v | awk '{print $2}'`
if [ "$3" == "tgz" ]; then
tar cf sqlitestudio-$VERSION.tar SQLiteStudio
xz -z sqlitestudio-$VERSION.tar
-elif [ "$3" == "dist" ]; then
- # Complete
- echo "Building complete package: sqlitestudio-$VERSION.tar.xz"
- tar cf sqlitestudio-$VERSION.tar SQLiteStudio
- xz -z sqlitestudio-$VERSION.tar
+elif [ "$3" == "dist" ] || [ "$3" == "dist_plugins" ]; then
+ if [ "$3" == "dist" ]; then
+ # Complete
+ echo "Building complete package: sqlitestudio-$VERSION.tar.xz"
+ tar cf sqlitestudio-$VERSION.tar SQLiteStudio
+ xz -z sqlitestudio-$VERSION.tar
- # App
- echo "Building incremental update package: sqlitestudio-$VERSION.tar.gz"
- cp -R SQLiteStudio app
- cd app
- rm -rf plugins
- rm -f lib/libQ*
- rm -rf iconengines
- rm -rf imageformats
- rm -rf platforms
- rm -rf platformthemes
- rm -rf printsupport
- rm -f lib/libicu*
- rm -f lib/libsqlite.so.0 ;# this is for SQLite 2
- find . -type l -exec rm -f {} \;
- tar cf sqlitestudio-$VERSION.tar *
- gzip -9 sqlitestudio-$VERSION.tar
- mv sqlitestudio-$VERSION.tar.gz ..
- cd ..
- rm -rf app
+ # App
+ echo "Building incremental update package: sqlitestudio-$VERSION.tar.gz"
+ cp -R SQLiteStudio app
+ cd app
+ rm -rf plugins
+ rm -f lib/libQ*
+ rm -rf iconengines
+ rm -rf imageformats
+ rm -rf platforms
+ rm -rf platformthemes
+ rm -rf printsupport
+ rm -f lib/libicu*
+ rm -f lib/libsqlite.so.0 ;# this is for SQLite 2
+ find . -type l -exec rm -f {} \;
+ tar cf sqlitestudio-$VERSION.tar *
+ gzip -9 sqlitestudio-$VERSION.tar
+ mv sqlitestudio-$VERSION.tar.gz ..
+ cd ..
+ rm -rf app
+ fi
# Plugins
mkdir plugins