"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/scripts/release.sh" (8 Mar 2017, 657 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 # script for creating a zip and tarball for inclusion in node
    4 
    5 unset CDPATH
    6 
    7 set -e
    8 
    9 rm -rf release *.tgz || true
   10 mkdir release
   11 node ./cli.js pack --loglevel error >/dev/null
   12 mv *.tgz release
   13 cd release
   14 tar xzf *.tgz
   15 
   16 mkdir node_modules
   17 mv package node_modules/npm
   18 
   19 # make the zip for windows users
   20 cp node_modules/npm/bin/*.cmd .
   21 zipname=npm-$(node ../cli.js -v).zip
   22 zip -q -9 -r -X "$zipname" *.cmd node_modules
   23 
   24 # make the tar for node's deps
   25 cd node_modules
   26 tarname=npm-$(node ../../cli.js -v).tgz
   27 tar czf "$tarname" npm
   28 
   29 cd ..
   30 mv "node_modules/$tarname" .
   31 
   32 rm -rf *.cmd
   33 rm -rf node_modules
   34 
   35 echo "release/$tarname"
   36 echo "release/$zipname"