Skip to content

Commit

Permalink
Move to GitHub
Browse files Browse the repository at this point in the history
Former-commit-id: e640ff8333e5656dcf78361c988838e573cf699f
  • Loading branch information
timfel committed Jun 15, 2016
1 parent 4ec8e17 commit d75a02a
Show file tree
Hide file tree
Showing 46 changed files with 1,594 additions and 113 deletions.
15 changes: 15 additions & 0 deletions .bintray.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"package": {
"name": "cog",
"repo": "vm",
"subject": "opensmalltalk"
},
"version": {
"name": "$Rev$",
"desc": "Automatic build"
},
"files": [
{"includePattern": "./(cog_.*\\.(?:gz|zip))", "uploadPattern": "$1"}
],
"publish": true
}
5 changes: 5 additions & 0 deletions .git_filters/RevDateURL.clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/perl -p

s/\$Date[^\$]*\$/\$Date\$/;
s/\$Rev[^\$]*\$/\$Rev\$/;
s/\$URL[^\$]*\$/\$URL\$/;
32 changes: 32 additions & 0 deletions .git_filters/RevDateURL.smudge
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/perl
use POSIX qw(strftime);

$myrev = `git log -n1 --format="%at"`;
$myrev =~ s/\s+$//m;
$ENV{'TZ'} = 'UTC';
$myrev = strftime "%Y%m%d%H%M", gmtime($myrev);
$myrev =~ s/\s+$//m;

$branch = `git symbolic-ref HEAD 2>/dev/null`;
$branch =~ s/\s+$//m;
$branch =~ s/refs\/heads\///;

if ( $branch eq "Cog" || $branch eq "dev" || $branch eq "master" || $branch eq "" ) {
$myrev = $myrev;
} else {
$myrev = $myrev . '-' . $branch . '';
}

$url=`git remote get-url origin 2>/dev/null`;
$url =~ s/\s+$//m;

$date = `git log --format=%ad -1`;
$date =~ s/\s+$//m;

while (<STDIN>) {
s/\$Date[^\$]*\$/\$Date: $date \$/;
s/\$URL[^\$]*\$/\$URL: $url \$/;
s/\$Rev[^\$]*\$/\$Rev: $myrev \$/;
} continue {
print or die "-p destination: $!\n";
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sq*SCCSVersion.h filter=RevDateURL ident
*.changes -diff
*.sources -diff
6 changes: 6 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[filter "RevDateURL"]
smudge = .git_filters/RevDateURL.smudge
clean = .git_filters/RevDateURL.clean
required
[merge]
renormalize = true
Loading

0 comments on commit d75a02a

Please sign in to comment.