- Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathzipuprel.sh
24 lines (21 loc) · 544 Bytes
/
zipuprel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh
# Check for command line option
if [ "$1"="" ];then
echo Usage: zipuprel.sh [RELEASE]
echo
echo Where RELEASE is the public release number \(ie: 1.5.0\).
exit
fi
LABEL=open_watcom_$1
PREFIX=open_watcom_$1
P4OPT=-f
ARCHIVES=/archives
cd$ARCHIVES
rm -f $PREFIX-src.tar.bz2
#############################################################################
# Archive all Open Watcom source files
rm -rf $ARCHIVES/ow_src
p4 -cOPENWATCOM_SRC sync $P4OPT @$LABEL
cd$ARCHIVES/ow_src
tar -cv *| bzip2 -9 > ../$PREFIX-src.tar.bz2
cd~/ow