aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/create_linux_portable.sh
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:38 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:38 -0500
commit6d42c08a54f15ddfdd8ee73643e3ddf8907bccc2 (patch)
tree0a6554677b6a7fea5c81134c0804f0acdb00e632 /SQLiteStudio3/create_linux_portable.sh
parenta0cf2bb71de2b70a2b293c4ce907ecaaf24275bf (diff)
parent306d6d3ca9c9ad774d19135681a7f9805f77035f (diff)
Merge tag 'upstream/3.0.3'
Upstream version 3.0.3 # gpg: Signature made Sun 22 Feb 2015 02:06:37 PM EST using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.com>"
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