I have a makefile in which I want to do checkout on a file if this file isn't already checkedout:
VAR=$(shell cleartool ls $(HOME)/all_files.tgz | grep CHECKEDOUT)
build:
@if ["$(VAR)" == ""]; then \
cleartool co -unres -nc $(HOME)/all_files.tgz;\
fi
@ tar czf $(HOME)/all_files.tgz $(OUT)/*.log
I get the following error if all_files.tgz is checked out:
/bin/sh: [/home/ge/prj/all_files.tgz@@/main/10/CHECKEDOUT from /main/10 Rule: CHECKEDOUT: not found