File: make-release

package info (click to toggle)
puredata 0.55.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,508 kB
  • sloc: ansic: 118,824; tcl: 10,221; cpp: 9,327; makefile: 1,632; sh: 1,476; python: 152; xml: 98; awk: 13
file content (20 lines) | stat: -rwxr-xr-x 458 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#usage: ./make-release <version>
if test x$1 == x
then
   echo usage: ./make-release 0.34-0 or 0.35-0test11 or ...
   exit 1
fi

# set -x
cd ..
ROOTDIR=`pwd`
find . \( -name ".[azA-Z]*" \! -name ".git" \
    -o -name "core" -o -name "*.cache" -o -name "*.orig" \) \
    -ok rm -r {} \;

git status
git archive --prefix=pd-$1/ HEAD | gzip > /tmp/pd-$1.src.tar.gz
mv -i /tmp/pd-$1.src.tar.gz $ROOTDIR/dist/ && \
ls -l $ROOTDIR/dist/pd-$1.src.tar.gz