Ver=0.1 Here=$(shell pwd) Tar=somenix$(Ver).tar all : @ echo "usage:" @ echo " make commit " @ echo " make install " install : @tar tf $(Here)/$(Tar) 2>&1 | sed 's/^/~\//' @echo "" @echo "WARNING: the above files will be overwritten by this command." @printf "Hit Control-C to cancel this install or ENTER to continue.... " @read @cd $(HOME) && tar xf $(Here)/$(Tar) @echo "" @echo Somenix $(Ver) installed commit : - [ -f "$(Tar)" ] && svn rm $(Tar) svn commit -m "deleting tar" cd /tmp && rm -rf /tmp/opt cd /tmp && rm -rf $(Tar) cd /tmp && svn export http://unbox.org/wisp/trunk/somenix/opt cd /tmp && tar -rvf $(Tar) opt cp /tmp/$(Tar) . svn add $(Tar) svn commit -m "adding tar" tar tf $(Tar)