mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
12c44332a2
* Minor count fix and r_diff include moved into r_util
15 lines
259 B
Bash
Executable File
15 lines
259 B
Bash
Executable File
#!/bin/sh
|
|
[ -z "$TMPDIR" ] && TMPDIR=/tmp
|
|
[ -w "$TMPDIR" ] || TMPDIR="$PWD"
|
|
T=$TMPDIR/.cc.txt
|
|
if [ -n "$1" ]; then
|
|
echo 1 > "$T"
|
|
else
|
|
N=`head -n1 $T 2> /dev/null`
|
|
[ -z "$N" ] && N=0
|
|
N=$((1+$N))
|
|
basename `pwd`
|
|
echo "$N" | tee "$T" 2> /dev/null
|
|
fi
|
|
exit 0
|