aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/Xpm/namecvt
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
committerReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
commitf4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch)
tree2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/extras/Xpm/namecvt
parenta840692edc9c6d19cd7c057f68e39c7d95eb767d (diff)
downloadnx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository
Diffstat (limited to 'nx-X11/extras/Xpm/namecvt')
-rw-r--r--nx-X11/extras/Xpm/namecvt60
1 files changed, 60 insertions, 0 deletions
diff --git a/nx-X11/extras/Xpm/namecvt b/nx-X11/extras/Xpm/namecvt
new file mode 100644
index 000000000..0bb610406
--- /dev/null
+++ b/nx-X11/extras/Xpm/namecvt
@@ -0,0 +1,60 @@
+#!/bin/sh
+#
+# create two scripts to convert the filenames of the XPM distribution
+# run this in the xpm toplevel directory
+# after that you have the following two scripts
+# cvtux2dos will copy the files into fordos/
+# cvtdos2ux will copy from fromdos/ to new/
+#
+# Written by HeDu 5/94 (hedu@cul-ipn.uni-kiel.de)
+#
+
+echo "Making cvtux2dos and cvtdos2ux..."
+
+cp /dev/null cvtux2dos
+echo "#!/bin/sh" > cvtux2dos
+echo "echo Making dos hierarchy..." >> cvtux2dos
+echo "mkdir fordos" >> cvtux2dos
+echo "mkdir fordos/lib" >> cvtux2dos
+echo "mkdir fordos/doc" >> cvtux2dos
+
+cp /dev/null cvtdos2ux
+echo "#!/bin/sh" > cvtdos2ux
+echo "echo Making unix hierarchy..." >> cvtdos2ux
+echo "mkdir new" >> cvtdos2ux
+echo "mkdir new/lib" >> cvtdos2ux
+echo "mkdir new/doc" >> cvtdos2ux
+
+for i in CHANGES FAQ FILES README README.MSW \
+ lib/CrBufFrI.c lib/CrBufFrP.c lib/CrDatFrI.c \
+ lib/CrDatFrP.c lib/CrIFrBuf.c lib/CrIFrDat.c \
+ lib/CrPFrBuf.c lib/CrPFrDat.c lib/RdFToDat.c \
+ lib/RdFToI.c lib/RdFToP.c lib/WrFFrDat.c \
+ lib/WrFFrI.c lib/WrFFrP.c \
+ lib/create.c lib/data.c lib/misc.c lib/parse.c \
+ lib/rgb.c lib/rgbtab.h lib/scan.c lib/hashtab.c \
+ lib/simx.h lib/simx.c lib/xpm.h lib/XpmI.h \
+ lib/Attrib.c lib/Image.c lib/Info.c \
+ lib/CrIFrP.c lib/CrPFrI.c lib/RdFToBuf.c lib/WrFFrBuf.c \
+ namecvt
+do
+ # fold to lower case
+ # so they are fine for DOS, sigh
+ new=`echo $i | tr '[A-Z]' '[a-z]'`
+ echo "cp $i fordos/$new" >> cvtux2dos
+ echo "cp fromdos/$new new/$i" >> cvtdos2ux
+done
+
+# special ones
+echo "cp COPYRIGHT fordos/copyrigh.t" >> cvtux2dos
+echo "cp fromdos/copyrigh.t new/COPYRIGHT" >> cvtdos2ux
+echo "cp doc/xpm.PS.gz fordos/doc/xpm_ps.gz" >> cvtux2dos
+echo "cp fromdos/doc/xpm_ps.gz new/doc/xpm.PS.gz" >> cvtdos2ux
+#
+echo "echo done." >> cvtux2dos
+echo "echo done." >> cvtdos2ux
+
+chmod +x cvtux2dos
+chmod +x cvtdos2ux
+
+echo "done."