Sha256: 066a4c24037a6a65c86ca5b1f741af43dca2f0f1889e249c40bd61e22bfc3afe

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

#!/bin/bash
CWD=$(pwd);
timelineCss=$CWD'/vendor/assets/timelineJS/css/timeline.css.erb';
darkCss=$CWD'/vendor/assets/timelineJS/css/themes/dark.css.erb';

s1='url\([';
s2="'\"]?(?!data:)([^\)";
s3="'\"]+)['\"]?\)";
r=$s1$s2$s3;

echo $r;

exp='s/'$r'/url(<%= image_path("images\/$1") %>)/g';

perl -pi -e "$exp" $timelineCss;
perl -pi -e "$exp" $darkCss;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timelineJS_rails-2.17 find_and_replace.sh