Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/rc/deb2tgz

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


#!/bin/rc

rfork e

if(~ $#* 0) {
	echo usage: deb2tgz file1 file2 ... >[1=2]
	exit usage
}

data=data.tar.gz
for(f) {
	x=`{echo $f | sed 's/deb$/tgz/'}
	ar x $f $data
	mv $data $x
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.