source: gs2-extensions/gstika/trunk/makedists.sh@ 34199

Last change on this file since 34199 was 34199, checked in by ak19, 4 years ago

A makedists.sh script for gstika to make the cutdown zip and tarball. Updated the one for tesseract. I'm not sure what the CASCADE-MAKE makedist includes (yet), and it may be different for gnome-lib. But I have so far followed the manual steps for Imagemagick in creating the cutdown binary-only distribution tarballs and carefully controlling what goes in there (which is different for each of these gs extensions).

  • Property svn:executable set to *
File size: 734 bytes
Line 
1#!/bin/sh
2
3gsExt="gstika"
4echo "Creating tarball and zip for $gsExt"
5
6if [ ! -d $gsExt ]; then
7
8 cp -r java $gsExt
9
10 # remove the src subfolder and the makeGSTikaCLI.sh compile script before packaging it up
11 rm -rf $gsExt/src
12 rm $gsExt/makeGSTikaCLI.sh
13else
14 echo "Folder $gsExt already exists. Using existing."
15 echo "For creating a fresh tarball and zip, delete the existing $gsExt folder"
16 echo "at this script level ($0) first."
17fi
18
19# just try to create it for the OS
20if [ -f "$gsExt.tar.gz" ]; then
21 rm "$gsExt.tar.gz"
22fi
23tar -cvzf "$gsExt.tar.gz" $gsExt
24
25if [ -f "$gsExt.zip" ]; then
26 rm "$gsExt.zip"
27fi
28zip -r "$gsExt.zip" $gsExt
29
30#rm -rf $gsExt
31
32echo "Done making $gsExt tarball/zip"
33echo ""
Note: See TracBrowser for help on using the repository browser.