log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
hg
>
anonet-resdb
annotate scripts/hex2dec @ 434:
ce9dee99975c
draft
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
gotta study...
author
sevil <sevil@sevilnatas.ano>
date
Wed, 09 Mar 2011 01:53:02 +0000 (2011-03-09)
parents
523b9c533d6c
children
2f57d4d36759
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
13
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
1
#!/bin/sh
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
2
(
14
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
3
if
[
x
"
$USE_BC
"
=
x1
]
;
then
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
4
echo
-n
"ibase=16; "
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
5
fi
13
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
6
if
[
x
"
$1
"
=
x
]
;
then
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
7
cat
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
8
else
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
9
echo
"
$1
"
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
+
−
10
fi
14
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
11
)
|
(
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
12
if
[
x
"
$USE_BC
"
=
x1
]
;
then
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
13
bc -q
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
14
else
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
15
cat ./scripts/hex2dec.d/
"
$(
cat
)
"
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
16
fi
523b9c533d6c
rewrote hex2dec to no longer require bc
Nick <nick@somerandomnick.ano>
parents:
13
diff
changeset
+
−
17
)