PageRenderTime 85ms CodeModel.GetById 81ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/installer/mk_filelist.sh

#
Shell | 56 lines | 36 code | 12 blank | 8 comment | 1 complexity | 6333e4d63abe21c23aa9e55dafd3c30b MD5 | raw file
 1#!/bin/sh
 2
 3# This script must be run from the jEdit directory, *not* the installer
 4# directory!!!
 5
 6# jedit-program fileset
 7echo jedit.jar > installer/jedit-program
 8echo jars/LatestVersion.jar >> installer/jedit-program
 9echo jars/QuickNotepad.jar >> installer/jedit-program
10echo properties/README.txt >> installer/jedit-program
11echo startup/README.txt >> installer/jedit-program
12echo startup/*.bsh >> installer/jedit-program
13find modes -name \*.xml >> installer/jedit-program
14echo modes/catalog >> installer/jedit-program
15find doc \( -name \*.txt -o -name \*.html -o -name \*.gif \) >> installer/jedit-program
16find doc -name toc.xml >> installer/jedit-program
17
18echo -n "jedit-program: "
19ls -l `cat installer/jedit-program` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
20
21# jedit-macros fileset
22find macros -name \*.bsh > installer/jedit-macros
23
24echo -n "jedit-macros: "
25ls -l `cat installer/jedit-macros` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
26
27# jedit-windows fileset
28echo jeshlstb.dl_ > installer/jedit-windows
29echo ltslog.dll >> installer/jedit-windows
30echo jeditsrv.exe >> installer/jedit-windows
31echo jedit.exe >> installer/jedit-windows
32echo jedinit.exe >> installer/jedit-windows
33echo unlaunch.exe >> installer/jedit-windows
34echo jedinstl.dll >> installer/jedit-windows
35echo jeservps.dll >> installer/jedit-windows
36
37echo -n "jedit-windows: "
38ls -l `cat installer/jedit-windows` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
39
40# jedit-mac fileset
41echo jars/MacOS.jar > installer/jedit-mac
42echo -n "jedit-mac: "
43ls -l `cat installer/jedit-mac` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
44
45# jedit-os2 fileset
46echo jedit.cmd > installer/jedit-os2
47
48echo -n "jedit-os2: "
49ls -l `cat installer/jedit-os2` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
50
51
52for file in installer/jedit-*
53do
54	sort $file > $file.tmp
55	mv $file.tmp $file
56done