Skip to content

Commit

Permalink
Merge pull request sysprog21#150 from sysprog21/bump-copyright-year
Browse files Browse the repository at this point in the history
Bump copyright year
  • Loading branch information
jserv authored Feb 19, 2024
2 parents 1aca5b9 + b64d2fc commit 390ade9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lab0-c is freely redistributable under the two-clause BSD License:

Copyright (C) 2017 Carnegie Mellon University.
Copyright (C) 2018-2023 National Cheng Kung University, Taiwan.
Copyright (C) 2018-2024 National Cheng Kung University, Taiwan.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Trace files
## Debugging Facilities

Before using GDB debug `qtest`, there are some routine instructions need to do. The script `scripts/debug.py` covers these instructions and provides basic debug function.
```
```shell
$ scripts/debug.py -h
usage: debug.py [-h] [-d | -a]

Expand All @@ -126,7 +126,7 @@ optional arguments:
-a, --analyze Analyze the core dump file
```
* Enter GDB without interruption by **SIGALRM**.
```
```shell
$ scripts/debug.py -d
Reading symbols from lab0-c/qtest...done.
Signal Stop Print Pass to program Description
Expand All @@ -138,13 +138,13 @@ cmd>

The core dump file was created in the working directory of the `qtest`.
* Allow the core dumps by using shell built-in command **ulimit** to set core file size.
```
```shell
$ ulimit -c unlimited
$ ulimit -c
unlimited
```
* Enter GDB and analyze
```
```shell
$ scripts/debug.py -a
Reading symbols from lab0-c/qtest...done.
[New LWP 9424]
Expand All @@ -167,7 +167,7 @@ cmd>
A small web server is already integrated within the `qtest` command line interpreter,
and you may use it by running the `web` command in its prompt.
```
```shell
$ ./qtest
cmd> web
listen on port 9999, fd is 3
Expand Down
10 changes: 5 additions & 5 deletions scripts/pre-push.hook
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Validate repository
# commit c2084e68866b7eaabd95f671319d3ee01e923b32 (HEAD -> master)
# Author: Jim Huang <jserv[email protected]>
# Date: Tue Jan 24 14:59:36 2023 +0800
# commit 3ed17237af5b1ead6c394df5099bc2bc1f8392df (HEAD -> bump-copyright-year)
# Author: Jim Huang <jserv@ccns.ncku.edu.tw>
# Date: Tue Feb 20 03:59:49 2024 +0800
# Bump copyright year
commit=$(git rev-list -n 1 --grep '^Bump copyright' 0e922a9b7da49726c91f1d7176bd5fa0cada97be...HEAD)
if [ x"$commit" != x"c2084e68866b7eaabd95f671319d3ee01e923b32" ] ; then
commit=$(git rev-list -n 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD)
if [ x"$commit" != x"3ed17237af5b1ead6c394df5099bc2bc1f8392df" ] ; then
echo -e "${RED}ERROR${NC}: This repository is insane."
echo -e "Make sure you did fork from https://github.com/sysprog21/lab0-c recently."
echo ""
Expand Down

0 comments on commit 390ade9

Please sign in to comment.