File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Backspace / convertToBackOs
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:29 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

#!/bin/csh -f
# script to mung all BackSpace .o files in a directory into .BackO files
# usage: convertToBackOs <directoryName>
# This script is useful to convert those old 1.0 BackSpace modules into
# ones that 3.0 BackSpace will find.

if ($#argv == 0) then
	echo "usage: convertToBackOs <directoryName>"
	echo ""
	echo "    This shell script renames BackSpace v1.0's .o files so that"
	echo "    they can be found and loaded by BackSpace v3.0"
	echo ""
	exit (1)
endif

cd $1

foreach file (*View.o)
	echo Converting ${file}
	mv ${file} `echo ${file} | sed "s/View.o/View.BackO/"`
end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.