📄 newuser
字号:
#! /bin/sh## PL/0 NEWUSER script for CSC 254/454, fall 1995# last updated July 11, 1999# should be invoked in an empty directory in which# to put a copy of the compiler#src=/u/cs254/plzero/srctest=/u/cs254/plzero/test/scott# verify that the target directory exists and is writable:if test ! -w . ; then echo "you don't have permission to create files in the current directory" exit 1fi# verify that the subdirectories do not exist:if test -d ./src -o -f ./src ; then echo "./src already exists; please delete and try again" exit 1fiif test -d ./test -o -f ./test ; then echo "./test already exists; please delete and try again" exit 1fi# create the subdirectories:mkdir srcmkdir test# goto src directory:cd src# create a dummy dependency fileecho "## dummy file" > makefile.dep# check out code:cp $src/Makefile .for srcfile in `make sources` ; docp $src/$srcfile .done# create RCS subdirectory:mkdir RCS# check in code (with copy left checked out):ci -u -t-'original version of 9-8-94' Makefile `make sources`# set strict lockingrcs -L Makefile `make sources`# make checked-out files un-writable (in keeping with strict locking)chmod u-w Makefile `make sources`# goto test directory:cd ../test# create symlink to compiler:ln -s ../src/pl0 .# copy a few sample test programs:cp $test/* .# build compilercd ../srcechoecho "*******************************************************"echo "directories and files created; building pl0 compiler..."echo# First make the tokens file. This file needs to be present# when generating dependenciesmake tokens.h# Now make the dependenciesmake depend# Make everything!make
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -