1 | #!/bin/sh |
---|
2 | # |
---|
3 | # create two scripts to convert the filenames of the XPM distribution |
---|
4 | # run this in the xpm toplevel directory |
---|
5 | # after that you have the following two scripts |
---|
6 | # cvtux2dos will copy the files into fordos/ |
---|
7 | # cvtdos2ux will copy from fromdos/ to new/ |
---|
8 | # |
---|
9 | # Written by HeDu 5/94 (hedu@cul-ipn.uni-kiel.de) |
---|
10 | # |
---|
11 | |
---|
12 | echo "Making cvtux2dos and cvtdos2ux..." |
---|
13 | |
---|
14 | cp /dev/null cvtux2dos |
---|
15 | echo "#!/bin/sh" > cvtux2dos |
---|
16 | echo "echo Making dos hierarchy..." >> cvtux2dos |
---|
17 | echo "mkdir fordos" >> cvtux2dos |
---|
18 | echo "mkdir fordos/lib" >> cvtux2dos |
---|
19 | echo "mkdir fordos/doc" >> cvtux2dos |
---|
20 | |
---|
21 | cp /dev/null cvtdos2ux |
---|
22 | echo "#!/bin/sh" > cvtdos2ux |
---|
23 | echo "echo Making unix hierarchy..." >> cvtdos2ux |
---|
24 | echo "mkdir new" >> cvtdos2ux |
---|
25 | echo "mkdir new/lib" >> cvtdos2ux |
---|
26 | echo "mkdir new/doc" >> cvtdos2ux |
---|
27 | |
---|
28 | for i in CHANGES FAQ FILES README README.MSW \ |
---|
29 | lib/CrBufFrI.c lib/CrBufFrP.c lib/CrDatFrI.c \ |
---|
30 | lib/CrDatFrP.c lib/CrIFrBuf.c lib/CrIFrDat.c \ |
---|
31 | lib/CrPFrBuf.c lib/CrPFrDat.c lib/RdFToDat.c \ |
---|
32 | lib/RdFToI.c lib/RdFToP.c lib/WrFFrDat.c \ |
---|
33 | lib/WrFFrI.c lib/WrFFrP.c \ |
---|
34 | lib/create.c lib/data.c lib/misc.c lib/parse.c \ |
---|
35 | lib/rgb.c lib/rgbtab.h lib/scan.c lib/hashtab.c \ |
---|
36 | lib/simx.h lib/simx.c lib/xpm.h lib/XpmI.h \ |
---|
37 | lib/Attrib.c lib/Image.c lib/Info.c \ |
---|
38 | lib/CrIFrP.c lib/CrPFrI.c lib/RdFToBuf.c lib/WrFFrBuf.c \ |
---|
39 | namecvt |
---|
40 | do |
---|
41 | # fold to lower case |
---|
42 | # so they are fine for DOS, sigh |
---|
43 | new=`echo $i | tr '[A-Z]' '[a-z]'` |
---|
44 | echo "cp $i fordos/$new" >> cvtux2dos |
---|
45 | echo "cp fromdos/$new new/$i" >> cvtdos2ux |
---|
46 | done |
---|
47 | |
---|
48 | # special ones |
---|
49 | echo "cp COPYRIGHT fordos/copyrigh.t" >> cvtux2dos |
---|
50 | echo "cp fromdos/copyrigh.t new/COPYRIGHT" >> cvtdos2ux |
---|
51 | echo "cp doc/xpm.PS.gz fordos/doc/xpm_ps.gz" >> cvtux2dos |
---|
52 | echo "cp fromdos/doc/xpm_ps.gz new/doc/xpm.PS.gz" >> cvtdos2ux |
---|
53 | # |
---|
54 | echo "echo done." >> cvtux2dos |
---|
55 | echo "echo done." >> cvtdos2ux |
---|
56 | |
---|
57 | chmod +x cvtux2dos |
---|
58 | chmod +x cvtdos2ux |
---|
59 | |
---|
60 | echo "done." |
---|