12345678910111213141516171819202122 |
- #!/bin/sh
- #quickly create pets
- #ex: dir2pets glibc 2.10.1-2-w5
- [ ! $2 ] && exit 1
- APPNAME="$1"
- APPVER="$2"
- for ANAME in ${APPNAME}-${APPVER} ${APPNAME}_DEV-${APPVER} ${APPNAME}_DOC-${APPVER} ${APPNAME}_NLS-${APPVER}
- do
- if [ -d $ANAME ];then
- echo "Creating ${ANAME}.pet"
- rm -f ${ANAME}.pet 2>/dev/null
- dir2tgz $ANAME
- tgz2pet ${ANAME}.tar.gz
- sync
- fi
- done
-
|