log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
repo
annotate paste/paste.5734 @ 854:
6568d45e3294
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
<Sgeo__> paste bin/paste
author
HackBot
date
Thu, 15 Nov 2012 08:30:22 +0000
parents
children
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
854
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
1
#!/bin/bash
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
2
if [ ! "$1" ]
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
3
then
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
4
PASTE=-
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
5
else
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
6
PASTE="$1"
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
7
fi
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
8
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
9
PASTENUM="$RANDOM"
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
10
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
11
mkdir -p $HACKENV/paste
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
12
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
13
echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM"
6568d45e3294
<Sgeo__> paste bin/paste
HackBot
parents:
diff
changeset
14
cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"