2015-04-22 04:14:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# strip_sourcemap.sh -- strip sourcemaps from a JS file (missing from uglifyjs)
|
2016-01-16 06:37:17 +00:00
|
|
|
# Copyright (C) 2014-present SheetJS
|
2015-04-22 04:14:03 +00:00
|
|
|
|
|
|
|
if [ $# -gt 0 ]; then
|
|
|
|
if [ -e "$1" ]; then
|
|
|
|
sed -i .sheetjs '/sourceMappingURL/d' "$1"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
cat - | sed '/sourceMappingURL/d'
|
|
|
|
fi
|