source: trunk/third/xpm/namecvt @ 15269

Revision 15269, 1.8 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15268, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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
12echo "Making cvtux2dos and cvtdos2ux..."
13
14cp /dev/null cvtux2dos
15echo "#!/bin/sh" > cvtux2dos
16echo "echo Making dos hierarchy..." >> cvtux2dos
17echo "mkdir fordos" >> cvtux2dos
18echo "mkdir fordos/lib" >> cvtux2dos
19echo "mkdir fordos/doc" >> cvtux2dos
20
21cp /dev/null cvtdos2ux
22echo "#!/bin/sh" > cvtdos2ux
23echo "echo Making unix hierarchy..." >> cvtdos2ux
24echo "mkdir new" >> cvtdos2ux
25echo "mkdir new/lib" >> cvtdos2ux
26echo "mkdir new/doc" >> cvtdos2ux
27
28for 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
40do
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
46done
47
48# special ones
49echo "cp COPYRIGHT fordos/copyrigh.t" >> cvtux2dos
50echo "cp fromdos/copyrigh.t new/COPYRIGHT" >> cvtdos2ux
51echo "cp doc/xpm.PS.gz fordos/doc/xpm_ps.gz" >> cvtux2dos
52echo "cp fromdos/doc/xpm_ps.gz new/doc/xpm.PS.gz" >> cvtdos2ux
53#
54echo "echo done." >> cvtux2dos
55echo "echo done." >> cvtdos2ux
56
57chmod +x cvtux2dos
58chmod +x cvtdos2ux
59
60echo "done."
Note: See TracBrowser for help on using the repository browser.