PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Shell | 57 lines | 37 code | 12 blank | 8 comment | 1 complexity | cfcc50fb6c91457e16978248b47c07aa 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
12find modes -name \*.xml >> installer/jedit-program
13echo modes/catalog >> installer/jedit-program
14find doc \( -name \*.txt -o -name \*.html -o -name \*.png \) >> installer/jedit-program
15find doc -name toc.xml >> installer/jedit-program
16
17echo -n "jedit-program: "
18ls -l `cat installer/jedit-program` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
19
20# jedit-macros fileset
21find macros -name \*.bsh > installer/jedit-macros
22
23echo -n "jedit-macros: "
24ls -l `cat installer/jedit-macros` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
25
26# jedit-windows fileset
27echo jeshlstb.dl_ > installer/jedit-windows
28echo ltslog.dll >> installer/jedit-windows
29echo jeditsrv.exe >> installer/jedit-windows
30echo jedit.exe >> installer/jedit-windows
31echo jedinit.exe >> installer/jedit-windows
32echo unlaunch.exe >> installer/jedit-windows
33echo jedinstl.dll >> installer/jedit-windows
34echo jeservps.dll >> installer/jedit-windows
35echo jedidiff.exe >> installer/jedit-windows
36echo jEdit_IE.reg.txt >> installer/jedit-windows
37
38echo -n "jedit-windows: "
39ls -l `cat installer/jedit-windows` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
40
41# jedit-mac fileset
42echo jars/MacOS.jar > installer/jedit-mac
43echo -n "jedit-mac: "
44ls -l `cat installer/jedit-mac` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
45
46# jedit-os2 fileset
47echo jedit.cmd > installer/jedit-os2
48
49echo -n "jedit-os2: "
50ls -l `cat installer/jedit-os2` | awk 'BEGIN { size=0 } { disk_size+=(int($5/4096+1)*4); size+=$5/1024 } END { print disk_size " " size }'
51
52
53for file in installer/jedit-*
54do
55	sort $file > $file.tmp
56	mv $file.tmp $file
57done