ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change
on this file since 58b6d1b was
bf71cfd,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
Moved up many directories in source
|
-
Property mode set to
100755
|
File size:
444 bytes
|
Rev | Line | |
---|
[d35e796] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | if [ "$#" -ne 1 ] |
---|
| 4 | then |
---|
| 5 | echo "illegal number of parameters, must be 1 was $#" |
---|
| 6 | exit |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | NEW="$(echo $1 | tr a-z A-Z)" |
---|
| 10 | TYPE_FILE=".type" |
---|
| 11 | if [ -f "$TYPE_FILE" ] |
---|
| 12 | then |
---|
| 13 | OLD="$(cat $TYPE_FILE | tr a-z A-Z)" |
---|
| 14 | if [ $OLD == $NEW ] |
---|
| 15 | then |
---|
| 16 | echo > /dev/null |
---|
| 17 | # echo "$TYPE_FILE stayed unchanged" |
---|
| 18 | else |
---|
| 19 | echo "$NEW" > "$TYPE_FILE" |
---|
| 20 | # echo "$TYPE_FILE changed from '$OLD' to '$NEW'" |
---|
| 21 | fi |
---|
| 22 | else |
---|
| 23 | echo "$NEW" > "$TYPE_FILE" |
---|
| 24 | fi |
---|
| 25 | echo "$TYPE_FILE" |
---|
Note: See
TracBrowser
for help on using the repository browser.