PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/installer/mk_filelist.sh

#
Shell | 74 lines | 33 code | 17 blank | 24 comment | 1 complexity | 00241375bf5896c73cb39923ddb2dce5 MD5 | raw file
 1#!/bin/sh
 2
 3function print_size() {
 4	echo -n "$1: "
 5	ls -l `cat installer/$1` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
 6}
 7
 8# This script must be run from the jEdit directory, *not* the installer
 9# directory!!!
10
11# jedit-program fileset
12echo jedit.jar > installer/jedit-program
13echo jars/LatestVersion.jar >> installer/jedit-program
14echo jars/QuickNotepad.jar >> installer/jedit-program
15echo properties/README.txt >> installer/jedit-program
16echo startup/README.txt >> installer/jedit-program
17echo startup/startup.bsh >> installer/jedit-program
18find modes -name \*.xml >> installer/jedit-program
19echo modes/catalog >> installer/jedit-program
20find doc \( -name \*.txt -o -name \*.png \) >> installer/jedit-program
21find doc/users-guide doc/FAQ doc/news42 doc/tips \( -name \*.html -o -name toc.xml \) >> installer/jedit-program
22echo doc/welcome.html >> installer/jedit-program
23
24print_size jedit-program
25
26# jedit-macros fileset
27find macros -name \*.bsh > installer/jedit-macros
28
29print_size jedit-macros
30
31# jedit-api fileset
32find doc/api \( -name \*.html -o -name toc.xml \) > installer/jedit-api
33echo doc/api/stylesheet.css >> installer/jedit-api
34echo doc/api/resources/inherit.gif >> installer/jedit-api
35
36print_size jedit-api
37
38# jedit-windows fileset
39#echo jeshlstb.dl_ > installer/jedit-windows
40#echo ltslog.dll >> installer/jedit-windows
41#echo jeditsrv.exe >> installer/jedit-windows
42#echo jedit.exe >> installer/jedit-windows
43#echo jedinit.exe >> installer/jedit-windows
44#echo unlaunch.exe >> installer/jedit-windows
45#echo jedinstl.dll >> installer/jedit-windows
46#echo jeservps.dll >> installer/jedit-windows
47#echo jedidiff.exe >> installer/jedit-windows
48#echo jEdit_IE.reg.txt >> installer/jedit-windows
49#
50#print_size jedit-windows
51
52# jedit-mac fileset
53echo jars/MacOS.jar > installer/jedit-mac
54
55print_size jedit-mac
56
57# jedit-os2 fileset
58echo jedit.cmd > installer/jedit-os2
59
60print_size jedit-os2
61
62# jedit-source fileset
63#find . \( -name \*.java -o -name \*.props -o -name \*.xml -o -name \*.png -o -name \*.gif \) -print > installer/jedit-source
64
65#print_size jedit-source
66
67rm -f installer/jedit-*.tar.bz2
68
69for file in installer/jedit-*
70do
71	echo "creating $file.tar.bz2"
72	tar cfj $file.tar.bz2 `cat $file`
73	rm $file
74done