rename2.sh (8a272653d9fbd9fc37691c9aad6a05089b4ecb4d) rename2.sh (2a60dec0919c20a03c2830a9466a86f9f44fbaf0)
1#!/bin/sh
2
3#
4# Copyright (c) 2009 Peter Holm <pho@FreeBSD.org>
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions

--- 26 unchanged lines hidden (view full) ---

35cd /tmp
36sed '1,/^EOF/d' < $here/$0 > rename2.c
37mycc -o rename2 -Wall rename2.c || exit 1
38rm -f rename2.c
39cd $here
40
41rm -rf /tmp/rename.dir.*
42start=`date +%s`
1#!/bin/sh
2
3#
4# Copyright (c) 2009 Peter Holm <pho@FreeBSD.org>
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions

--- 26 unchanged lines hidden (view full) ---

35cd /tmp
36sed '1,/^EOF/d' < $here/$0 > rename2.c
37mycc -o rename2 -Wall rename2.c || exit 1
38rm -f rename2.c
39cd $here
40
41rm -rf /tmp/rename.dir.*
42start=`date +%s`
43while [ $((`date +%s` - start -lt 300 ]; do
43while [ $((`date +%s` - start)) -lt 300 ]; do
44 for j in `jot 10`; do
45 /tmp/rename2 &
46 done
47 wait
48done
49rm -rf /tmp/rename.dir.* /tmp/rename2
50exit 0
51EOF

--- 52 unchanged lines hidden ---
44 for j in `jot 10`; do
45 /tmp/rename2 &
46 done
47 wait
48done
49rm -rf /tmp/rename.dir.* /tmp/rename2
50exit 0
51EOF

--- 52 unchanged lines hidden ---